hoolux /system/expressionengine/libraries/File_field.php

Language PHP Lines 699
MD5 Hash e16ee8693e7954fa38cba9caf73c113e Estimated Cost $10,079 (why?)
Repository https://bitbucket.org/tdevonshire/hoolux.git View Raw File View Project SPDX
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * ExpressionEngine - by EllisLab
 *
 * @package		ExpressionEngine
 * @author		EllisLab Dev Team
 * @copyright	Copyright (c) 2003 - 2012, EllisLab, Inc.
 * @license		http://ellislab.com/expressionengine/user-guide/license.html
 * @link		http://ellislab.com
 * @since		Version 2.4
 * @filesource
 */
 
// ------------------------------------------------------------------------

/**
 * ExpressionEngine File_browser Class
 *
 * @package		ExpressionEngine
 * @subpackage	Core
 * @category	File_field
 * @author		EllisLab Dev Team
 * @link		http://ellislab.com
 */

class File_field {
	
	var $_files = array();
	
	var $_file_names = array();
	var $_file_ids = array();
	var $_dir_ids = array();
	
	var $_manipulations = array();
	var $_upload_prefs = array();
	
	public function __construct()
	{
		$this->EE =& get_instance();
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Creates a file field
	 * 
	 * @param string $field_name The name of the field
	 * @param string $data The data stored in the file field 
	 * 		e.g. {filedir_x}filename.ext
	 * @param string $allowed_file_dirs The allowed file directory 
	 * 		Either 'all' or ONE directory ID
	 * @param string $content_type The content type allowed. 
	 * 		Either 'all' or 'image'
	 * @return string Fully rendered file field
	 */
	public function field($field_name, $data = '', $allowed_file_dirs = 'all', $content_type = 'all', $view_type = 'list')
	{
		// Load necessary library, helper, model and langfile
		$this->EE->load->library('filemanager');
		$this->EE->load->helper(array('html', 'form'));
		$this->EE->load->model(array('file_model', 'file_upload_preferences_model'));
		$this->EE->lang->loadfile('fieldtypes');
		
		$vars = array(
			'filedir'				=> '',
			'filename'				=> '',
			'upload_location_id'	=> ''
		);
		$allowed_file_dirs = ($allowed_file_dirs == 'all') ? '' : $allowed_file_dirs;
		$specified_directory = ($allowed_file_dirs == '') ? 'all' : $allowed_file_dirs;
		
		// Parse field data
		if ( ! empty($data) AND ($parsed_field = $this->parse_field($data)) !== FALSE)
		{
			$vars = $parsed_field;
			$vars['filename'] = $vars['filename'].'.'.$vars['extension'];
		}
		
		// Retrieve all directories that are both allowed for this user and
		// for this field
		$upload_dirs[''] = lang('directory');
		$upload_dirs = $this->EE->file_upload_preferences_model->get_dropdown_array(
			$this->EE->session->userdata('group_id'),
			$allowed_file_dirs,
			$upload_dirs
		);
		
		// Get the thumbnail
		$thumb_info = $this->EE->filemanager->get_thumb($vars['filename'], $vars['upload_location_id']);
		$vars['thumb'] = $thumb_info['thumb'];
		$vars['alt'] = $vars['filename'];
		
		// Create the hidden fields for the file and directory
		$vars['hidden']	  = form_hidden($field_name.'_hidden', $vars['filename']);
		$vars['hidden']	 .= form_hidden($field_name.'_hidden_dir', $vars['upload_location_id']);
		
		// Create a standard file upload field and dropdown for folks 
		// without javascript
		$vars['upload'] = form_upload(array(
			'name'				=> $field_name,
			'value'				=> $vars['filename'],
			'data-content-type'	=> $content_type,
			'data-directory'	=> $specified_directory
		));
		$vars['dropdown'] = form_dropdown($field_name.'_directory', $upload_dirs, $vars['upload_location_id']);

		// Check to see if they have access to any directories to create an upload link
		$vars['upload_link'] = (count($upload_dirs) > 0) ? '<a href="#" class="choose_file" data-directory="'.$specified_directory.'">'.lang('add_file').'</a>' : lang('directory_no_access');

		// If we have a file, show the thumbnail, filename and remove link
		$vars['set_class'] = $vars['filename'] ? '' : 'js_hide';

		return $this->EE->load->ee_view('_shared/file/field', $vars, TRUE);
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Initialize the file browser given a configuration array and an endpoint url
	 * @param array $config Associative array containing five different keys and values:
	 * 		- publish: set to TRUE if you're on the publish page, optionally
	 * 			just pass an empty array or none at all for the same behavior
	 * 		- trigger: the selector to pass to jQuery to create a trigger for
	 * 			the file browser
	 * 		- field_name: the field you're operating on. If undefined, it will
	 * 			assume the name is userfile
	 * 		- settings: JSON object defining the content type and directory
	 * 			e.g. {"content_type": "all/image", "directory": "all/<directory_id>"}
	 * 		- callback: Javascript function that will be called when an image
	 * 			is selected. e.g. function (file, field) { console.log(file, field); }
	 * 			file is an object of the selected file's data, and field is a
	 * 			jQuery object representing the field from the field_name given
	 * @param string $endpoint_url The URL the file browser will hit
	 */
	public function browser($config = array(), $endpoint_url = 'C=content_publish&M=filemanager_actions')
	{
		$this->EE->lang->loadfile('content');

		// Are we on the publish page? If so, go ahead and load up the publish
		// page javascript files
		if (empty($config) OR (isset($config['publish']) AND $config['publish'] === TRUE))
		{
			$this->EE->javascript->set_global(array(
				'filebrowser' => array(
					'publish' => TRUE
				)
			));
		}
		// No? Make sure we at least have a trigger and a callback
		elseif (isset($config['trigger'], $config['callback']))
		{
			$field_name = (isset($config['field_name'])) ? $config['field_name'].', ' : '';
			$settings = (isset($config['settings'])) ? $config['settings'].', ' : '';
			
			$this->EE->javascript->ready("
				$.ee_filebrowser.add_trigger('{$config['trigger']}', {$field_name}{$settings}{$config['callback']});
			");
		}
		else
		{
			return;
		}

		$this->_browser_css();
		$this->_browser_javascript($endpoint_url);
	}

	// ------------------------------------------------------------------------
	
	/**
	 * Validate's the data by checking to see if they used the normal file 
	 * field or the file browser
	 * 
	 * USE THIS BEFORE format_data()
	 * 
	 * @param string $data The data in the field we're validating
	 * @param string $field_name The name of the field we're validating
	 * @param string $required Set to 'y' if the field is required
	 * @return array Associative array containing ONLY the name of the 
	 * 		file uploaded
	 */
	public function validate($data, $field_name, $required = 'n')
	{
		$dir_field		= $field_name.'_directory';
		$hidden_field	= $field_name.'_hidden';
		$hidden_dir		= ($this->EE->input->post($field_name.'_hidden_dir')) ? $this->EE->input->post($field_name.'_hidden_dir') : '';
		$allowed_dirs	= array();
		
		// Default to blank - allows us to remove files
		$_POST[$field_name] = '';
		
		// Default directory
		$upload_directories = $this->_get_upload_prefs();
		
		// Directory selected - switch
		$filedir = ($this->EE->input->post($dir_field)) ? $this->EE->input->post($dir_field) : '';
		
		foreach($upload_directories as $row)
		{
			$allowed_dirs[] = $row['id'];
		}
		
		// Upload or maybe just a path in the hidden field?
		if (isset($_FILES[$field_name]) && $_FILES[$field_name]['size'] > 0 AND in_array($filedir, $allowed_dirs))
		{
			$this->EE->load->library('filemanager');
			$data = $this->EE->filemanager->upload_file($filedir, $field_name);
			
			if (array_key_exists('error', $data))
			{
				return $data['error'];
			}
			else
			{
				$_POST[$field_name] = $data['file_name'];
			}
		}
		elseif ($this->EE->input->post($hidden_field))
		{
			$_POST[$field_name] = $_POST[$hidden_field];
		}
		
		$_POST[$dir_field] = $filedir;
		
		unset($_POST[$hidden_field]);
		
		// If the current file directory is not one the user has access to
		// make sure it is an edit and value hasn't changed
		
		if ($_POST[$field_name] && ! in_array($filedir, $allowed_dirs))
		{
			if ($filedir != '' OR ( ! $this->EE->input->post('entry_id') OR $this->EE->input->post('entry_id') == ''))
			{
				return lang('directory_no_access');
			}
			
			// The existing directory couldn't be selected because they didn't have permission to upload
			// Let's make sure that the existing file in that directory is the one that's going back in
			
			$eid = (int) $this->EE->input->post('entry_id');
			
			$this->EE->db->select($field_name);
			$query = $this->EE->db->get_where('channel_data', array('entry_id'=>$eid));	

			if ($query->num_rows() == 0)
			{
				return lang('directory_no_access');
			}
			
			if ('{filedir_'.$hidden_dir.'}'.$_POST[$field_name] != $query->row($field_name))
			{
				return lang('directory_no_access');
			}
			
			// Replace the empty directory with the existing directory
			$_POST[$field_name.'_directory'] = $hidden_dir;
		}
		
		if ($required == 'y' && ! $_POST[$field_name])
		{
			return lang('required');
		}
		
		unset($_POST[$field_name.'_hidden_dir']);
		return array('value' => $this->format_data($_POST[$field_name], $hidden_dir));
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Format's the data of a file field given the name of the file and 
	 * the directory_id
	 * 
	 * @param string $data The name of the file
	 * @param integer $directory_id The directory ID
	 * @return string The formatted field data e.g. {filedir_1}file.ext
	 */
	public function format_data($file_name, $directory_id = 0)
	{
		if ($file_name != '')
		{
			if ( ! empty($directory_id))
			{
			     return '{filedir_'.$directory_id.'}'.$file_name;
			}

			return $file_name;
		}
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Caches file data about to be parsed by the channel module. Instead of querying
	 * for individual files inside the entries loop, we'll query for everything we need
	 * before the loop starts, significantly reducing queries.
	 *
	 * @param array $data	Array of file field data we're going to query for
	 * @return void
	 */
	public function cache_data($data = array())
	{
		if (empty($data))
		{
			return FALSE;
		}
		
		$this->EE->load->model('file_model');
		
		// We'll keep track of file names and file IDs collected
		$file_names = array();
		$file_ids = array();
		$dir_ids = array();
		
		// Don't deal with duplicate data, files are the same from entry to entry
		$data = array_unique($data);
		
		foreach ($data as $field_data)
		{
			// If the file field is in the "{filedir_n}image.jpg" format
			if (preg_match('/^{filedir_(\d+)}/', $field_data, $matches))
			{
				$dir_ids[] = $matches[1];
				$file_names[] = str_replace($matches[0], '', $field_data);
			}
			// If file field is just a file ID, much simpler
			else if (! empty($field_data) && is_numeric($field_data))
			{
				$file_ids[] = $field_data;
			}
		}
		
		$dir_ids = array_unique($dir_ids);
		
		$file_names = array_diff($file_names, $this->_file_names);
		$this->_file_names = array_merge($this->_file_names, $file_names);
		
		// Query for files based on file names and directory ID
		if ( ! empty($file_names))
		{
			$file_names = $this->EE->file_model->get_files_by_name($file_names, $dir_ids)->result_array();
		}
		
		$file_ids = array_diff($file_ids, $this->_file_ids);
		$this->_file_ids = array_merge($this->_file_ids, $file_ids);
		
		// Query for files based on file ID
		if ( ! empty($file_ids))
		{
			$file_ids = $this->EE->file_model->get_files_by_id($data)->result_array();
		}
		
		// Merge our results into our cached array
		$this->_files = array_merge(
			$this->_files, // Merge itself in case more than one file field is processed
			$file_names,
			$file_ids
		);
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Searches the local _files array for a particular file based on a specific
	 * key and value, and queries the database for the file if it doesn't exist.
	 *
	 * @param mixed $file_reference	File ID or file name of file to return
	 * @param string $dir_id		Directory ID file is in, if searching by file name
	 * @return array				File information
	 */
	public function get_file($file_reference = NULL, $dir_id = NULL)
	{
		// This is what we're returning, we'll be overwriting it by the end of
		// the function if all goes well
		$file = FALSE;
		
		if ($file_reference != NULL)
		{
			// Assign the key (field) and value we'll be searching by
			$key = (is_numeric($file_reference)) ? 'file_id' : 'file_name';
			
			// Loop through cached files
			foreach ($this->_files as $file)
			{
				// See if key exists
				if (isset($file[$key]))
				{
					// If value exists, return the file and stop the search
					if (($key == 'file_id' AND $file[$key] == $file_reference) OR
						// If we're searching by file name, make sure we're grabbing the
						// correct file in the case that we cached two files with the same
						// name but in different upload directories.
						($key == 'file_name' AND $file[$key] == $file_reference
							AND $file['upload_location_id'] == $dir_id))
					{
						return $file;
					}
				}
			}
			
			// If we got here, we need to query for the file
			$this->EE->load->model('file_model');
			
			// Query based on file ID
			if (is_numeric($file_reference))
			{
				$file = $this->EE->file_model->get_files_by_id($file_reference)->row_array();
			}
			// Query based on file name and directory ID
			else
			{
				$file = $this->EE->file_model->get_files_by_name($file_reference, $dir_id)->row_array();
			}
			
			$this->_files[] = $file;
		}
		
		return $file;
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Parse field contents, which may be in the {filedir_n} format for may be
	 * a file ID.
	 *
	 * @access	public
	 * @param	string $data Field contents
	 * @return	array|boolean Information about file and upload directory, false 
	 * 		if there is no file
	 */
	public function parse_field($data)
	{
		// If the file field is in the "{filedir_n}image.jpg" format
		if (preg_match('/^{filedir_(\d+)}/', $data, $matches))
		{
			// Set upload directory ID and file name
			$dir_id = $matches[1];
			$file_name = str_replace($matches[0], '', $data);
			
			$file = $this->get_file($file_name, $dir_id);
		}
		// If file field is just a file ID
		else if (! empty($data) && is_numeric($data))
		{
			$file = $this->get_file($data);
		}
		
		// If there is no file, but data was passed in, create a dummy file
		// array to pass back the data we were given. This is likely to
		// happen when the old style of category_image is passed in and we
		// don't recognize it because it's in a URL format. So, we'll return
		// the URL so that people's category images continue to work.
		if (empty($file) AND ! empty($data))
		{
			$file = array(
				'url'					=> $data,
				'file_name'				=> $data,
				'extension'				=> '',
				'path'					=> '',
				'upload_location_id'	=> '',
				'file_hw_original'		=> ''
			);
			
			return $file;
		}
		else if (empty($file) AND empty($data))
		{
			return FALSE;
		}

		// Get the cached upload preferences
		$upload_dir = $this->_get_upload_prefs();
			
		if ( ! isset($upload_dir[$file['upload_location_id']]))
		{
			return FALSE;
		}
		
		$upload_dir = $upload_dir[$file['upload_location_id']];
		
		$file['file_name'] = rawurlencode($file['file_name']);
		
		// Set additional data based on what we've gathered
		$file['raw_output']	= $data;
		$file['path'] 		= (isset($upload_dir['url'])) ? $upload_dir['url'] : '';
		$file['extension'] 	= substr(strrchr($file['file_name'], '.'), 1);
		$file['filename'] 	= basename($file['file_name'], '.'.$file['extension']); // backwards compatibility
		$file['url'] 		= $file['path'].$file['file_name'];
		
		$dimensions = explode(" ", $file['file_hw_original']);
		
		$file['width'] 	= isset($dimensions[1]) ? $dimensions[1] : '';
		$file['height'] = isset($dimensions[0]) ? $dimensions[0] : '';
		
		// Pre and post formatting
		$file['image_pre_format'] = $upload_dir['pre_format'];
		$file['image_post_format'] = $upload_dir['post_format'];
		$file['file_pre_format'] = $upload_dir['file_pre_format'];
		$file['file_post_format'] = $upload_dir['file_post_format'];
		
		// Image/file properties
		$file['image_properties'] = $upload_dir['properties'];
		$file['file_properties'] = $upload_dir['file_properties'];
		
		$manipulations = $this->_get_dimensions_by_dir_id($file['upload_location_id']);
		
		foreach($manipulations as $m)
		{
			$file['url:'.$m['short_name']] = $file['path'].'_'.$m['short_name'].'/'.$file['file_name'];
			
		}
		return $file;
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Unlike parse(), this parses all occurances of {filedir_n} from a given
	 * string to their actual values and returns the processed string.
	 *
	 * @access	public
	 * @param	string $data The string to parse {filedir_n} in
	 * @return	string The original string with all {filedir_n}'s parsed
	 */	
	public function parse_string($data)
	{
		// Find each instance of {filedir_n}
		if (preg_match_all('/{filedir_(\d+)}/', $data, $matches, PREG_SET_ORDER))
		{
			$file_dirs = $this->_file_dirs();
			
			// Replace each match
			foreach ($matches as $match)
			{
				if (isset($file_dirs[$match[1]]))
				{
					$data = str_replace('{filedir_'.$match[1].'}', $file_dirs[$match[1]], $data);
				}
			}
		}
		
		return $data;
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Get the file directory data and keep it stored in the cache
	 * 
	 * @return array Array of file directories
	 */
	private function _file_dirs()
	{
		if ( ! $this->EE->session->cache(__CLASS__, 'file_dirs'))
		{
			$this->EE->session->set_cache(
				__CLASS__,
				'file_dirs',
				$this->EE->functions->fetch_file_paths()
			);
		}
		
		return $this->EE->session->cache(__CLASS__, 'file_dirs');
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Get upload preferences and keep it cached in the class
	 * 
	 * @return array Array of upload preferences
	 */
	private function _get_upload_prefs()
	{
		if (empty($this->_upload_prefs))
		{
			$this->EE->load->model('file_upload_preferences_model');
			
			$this->_upload_prefs = $this->EE->file_upload_preferences_model->get_file_upload_preferences(
				NULL,
				NULL,
				TRUE
			);
		}
		
		return $this->_upload_prefs;
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Gets dimensions for an upload directory and caches them
	 *
	 * @param int $dir_id	ID of upload directory
	 * @return array		Array of image manipulation settings
 	 */
	private function _get_dimensions_by_dir_id($dir_id)
	{
		if ( ! isset($this->_manipulations[$dir_id]))
		{
			$this->EE->load->model('file_model');
			
			$this->_manipulations[$dir_id] = $this->EE->file_model->get_dimensions_by_dir_id($dir_id)->result_array();
		}
		
		return $this->_manipulations[$dir_id];
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Add the file browser CSS to the head
	 */
	private function _browser_css()
	{
		$this->EE->cp->add_to_head($this->EE->view->head_link('css/file_browser.css'));
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Loads up javascript dependencies and global variables for the file 
	 * browser and file uploader
	 */
	private function _browser_javascript($endpoint_url)
	{
		$this->EE->cp->add_js_script('plugin', array('tmpl', 'ee_table'));
		
		// Include dependencies
		$this->EE->cp->add_js_script(array(
			'file'		=> array(
				'underscore',
				'files/publish_fields'
			),
			'plugin'	=> array(
				'scrollable',
				'scrollable.navigator',
				'ee_filebrowser',
				'ee_fileuploader',
				'tmpl'
			)
		));
		
		$this->EE->load->helper('html');
		
		$this->EE->javascript->set_global(array(
			'lang' => array(
				'resize_image'		=> lang('resize_image'),
				'or'				=> lang('or'),
				'return_to_publish'	=> lang('return_to_publish')
			),
			'filebrowser' => array(
				'endpoint_url'		=> $endpoint_url,
				'window_title'		=> lang('file_manager'),
				'next'				=> anchor(
					'#', 
					img(
						$this->EE->cp->cp_theme_url . 'images/pagination_next_button.gif',
						array(
							'alt' => lang('next'),
							'width' => 13,
							'height' => 13
						)
					),
					array(
						'class' => 'next'
					)
				),
				'previous'			=> anchor(
					'#', 
					img(
						$this->EE->cp->cp_theme_url . 'images/pagination_prev_button.gif',
						array(
							'alt' => lang('previous'),
							'width' => 13,
							'height' => 13
						)
					),
					array(
						'class' => 'previous'
					)
				)
			),
			'fileuploader' => array(
				'window_title'		=> lang('file_upload'),
				'delete_url'		=> 'C=content_files&M=delete_files'
			)
		));
	}

}

// END File_field class

/* End of file File_field.php */
/* Location: ./system/expressionengine/libraries/File_field.php */
Back to Top