$val) { if ($val->name == $options[1]) { $pos = $key; break; } } if (isset($pos)) { $cn = $row[$pos]; } } if (empty($cn)) { $cn = 'binary_file.dat'; } } return sprintf( '%s', $options['wrapper_link'], urlencode($cn), htmlspecialchars($cn), htmlspecialchars($cn) ); } /** * This method is called when any PluginManager to which the observer * is attached calls PluginManager::notify() * * @param SplSubject $subject The PluginManager notifying the observer * of an update. * * @todo implement * @return void */ public function update (SplSubject $subject) { ; } /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ /** * Gets the transformation name of the specific plugin * * @return string */ public static function getName() { return "Download"; } } ?>