示例#1
0
 public function __construct($id = 0)
 {
     parent::__construct();
     $this->sanitizeFunctions = self::$_sanitizeFunctions;
     $this->validateFunctions = self::$_validateFunctions;
     $this->infoKeys = self::$_infoKeys;
     $this->editKeys = self::$_editKeys;
     $this->table = self::TABLE;
     if ($id > 0) {
         $this->set('ID', $id);
         $this->hydrateFromDB();
     }
     $this->submitClassName = __CLASS__;
 }
示例#2
0
 public function __construct($id)
 {
     $this->sanitizeFunctions = self::$_sanitizeFunctions;
     $this->validateFunctions = self::$_validateFunctions;
     $this->infoKeys = self::$_infoKeys;
     $this->editKeys = self::$_editKeys;
     $this->table = self::TABLE;
     parent::__construct();
     $this->set('ID', $id);
     if (!$this->hasColumnChanged('ID')) {
         throw new Exception("Invalid Page ID {$id}.");
     }
     $this->submitClassName = __CLASS__;
     $this->hydrate();
 }
示例#3
0
 public function __construct($id)
 {
     parent::__construct();
     $this->sanitizeFunctions = self::$_sanitizeFunctions;
     $this->validateFunctions = self::$_validateFunctions;
     $this->infoKeys = self::$_infoKeys;
     $this->editKeys = self::$_editKeys;
     $this->table = self::TABLE;
     if ($id > 0) {
         $this->set('ID', $id);
         $this->hydrateFromDB();
         $this->children = new MenuLink_Collection('`ParentID`=' . $this->get('ID'));
         $this->editURL = "/zenphoto/zp-core/zp-extensions/dahlen_project/dahlen_project_tab.php?requestfor=menulink&ID=" . $this->get('ID');
     }
     $this->editFormHandler = '/lib/dahlen/slideshowSubmitHandler.php';
     $this->submitClassName = 'MenuLink';
 }
示例#4
0
 public function __construct($slideshowID, $zenphotoID)
 {
     parent::__construct();
     $this->sanitizeFunctions = self::$_sanitizeFunctions;
     $this->validateFunctions = self::$_validateFunctions;
     $this->infoKeys = self::$_infoKeys;
     $this->editKeys = self::$_editKeys;
     $this->table = self::TABLE;
     $this->resizeMethod = self::DEFAULT_RESIZE_METHOD;
     $this->position = self::DEFAULT_POSITION;
     $this->setArray(array('SlideshowID' => $slideshowID, 'ZenphotoID' => $zenphotoID));
     if (!$this->hasColumnChanged('SlideshowID') || !$this->hasColumnChanged('ZenphotoID')) {
         throw new Exception("Invalid SlideshowID {$slideshowID} or ZenphotoID {$zenphotoID}.");
     }
     $this->hydrate();
     $this->editURL = "/zenphoto/zp-core/zp-extensions/dahlen_project/dahlen_project_tab.php?requestfor=image&SlideshowID=" . $this->getSanitizedValue('SlideshowID') . "&ZenphotoID=" . $this->getSanitizedValue('ZenphotoID');
 }