v7‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT home/ajdemo/public_html/mempro/library/Am/Widget.php000064400000003672152101617060016500 0ustar00id = $id; $this->title = $title; $this->renderCallback = $renderCallback; $this->targets = $targets == self::TARGET_ANY ? array( self::TARGET_MAIN, self::TARGET_TOP, self::TARGET_BOTTOM, self::TARGET_ASIDE ) : $targets; $this->configForm = $configForm; $this->permission = $permission; $this->invokeArgs = $invokeArgs; } public function getId() { return $this->id; } public function getTargets() { return $this->targets; } public function getTitle() { return $this->title; } public function render(Am_View $view, $config=null) { return call_user_func($this->renderCallback, $view, $config, $this->invokeArgs); } public function hasPermission(Admin $admin) { return $admin->hasPermission($this->permission); } public function hasConfigForm() { return !is_null($this->configForm); } public function getConfigForm() { $form = is_callable($this->configForm) ? call_user_func($this->configForm) : $this->configForm; if ($form) { $form->addHidden('id')->setValue($this->getId())->toggleFrozen(true); } return $form; } }