public static function getById($id) { try { $persona = new self(); $persona->setId(intval($id)); $persona->getDao()->getById(); return $persona; } catch (\Exception $e) { return null; } }
/** * @param $id * @return bool */ public static function isIdActive($id) { $persona = Model\Tool\Targeting\Persona::getById($id); if ($persona) { return $persona->getActive(); } return false; }