> HOW TO ADJUST FILTERS AND HOW TO SET GLOBAL FILTERS?
you can adjust filters in the genrator.yml with
filters: field1, field2
for global stuff, what I did was something like this :
class jobsActions extends autoJobsActions
{
public function preExecute()
{
parent::preExecute();
$this->active_date = myUser::getActiveDate();
$this->context->getEventDispatcher()->connect
("admin.build_query", array($this,'addDayViewFilter'));
}
public function addDayViewFilter($event, $query)
{
$active_date = myUser::getActiveDate();
return $query->andWhere("start_time LIKE '".$active_date."%' or
end_time LIKE '".$active_date."%'")
->andWhere("user_id = ?",$this->getUser()->getId());
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---