public function getImage($id, $relative = true) { if (is_string($id)) { $id = "/__website/{$id}"; } return parent::getImage($id, $relative); }
/** * method: createAPI * * todo: write documentation */ protected function createAPI() { // Create the API object $api = $this->createObject($this->data["api"], true, true); // An API Object was not created, so create a default Amslib_MVC object instead if ($api == false) { $api = new Amslib_MVC(); } // Setup the api with basic name and filesystem location $api->setLocation($this->getLocation()); $api->setName($this->getName()); $api->setPlugin($this); return $api; }
public function __construct() { parent::__construct(); }