public static function getTopFull() { $msg = Cookies::restore('flashTopFull'); $type = Cookies::restore('flashTopFullType'); Cookies::delete('flashTopFull'); Cookies::delete('flashTopFullType'); if ($msg !== null) { return '"text":"' . $msg . '","layout":"top","type":"' . $type . '"'; } return false; }
public function defineFiltroAssinante(array $criteria) { $modelName = $this->name; $model = new $modelName(); if (property_exists($model, 'assinante') === true) { $criteria['assinante'] = (string) Cookies::restore('assinante')->getId(); } return $criteria; }