_url; } /* (non-PHPdoc) * @see Ai1ec_File_Abstract::process_file() */ public function process_file() { $files_to_check = array(); foreach ( array_keys( $this->_paths ) as $path ) { $files_to_check[$path] = $path . 'img' . DIRECTORY_SEPARATOR . $this->_name; } foreach ( $files_to_check as $path => $file ) { if ( file_exists( $file ) ) { // Construct URL based on base URL available in $this->_paths array. $this->_url = $this->_paths[$path] . '/img/' . $this->_name; $this->_content = $file; return true; } } return false; } }