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