Exemplo n.º 1
0
 static function delete($templateId)
 {
     if ($id = intval($templateId)) {
         $db = Registry::getInstance()->get('db');
         $attachment = new attachment(self::TABLE, $id);
         $attachment->unlinkAll();
         parent::delete($id);
     }
 }
Exemplo n.º 2
0
 static function getList($redirectId)
 {
     return parent::getList("SELECT * FROM `" . self::TABLE . "` WHERE `redirect_id`=" . intval($redirectId) . " ORDER BY `date`");
 }