Post

1 follower Follow
0
Avatar

[PHP] As a filter by text and by category in an application ?

As a filter by text and by category in an application ?

I need me a filter application a specific title , and I'm also trying to filter a category ( active , dead, deleted ) and I'm also not getting it. Could someone help me? Follow the example below:

$atividade = "Tarefa de agendamento";

$collection = PodioItem::filter($app_id, array(
$processo == "Todos" ? : 'filters' => array($campo_processo => array((int)$processo)), //ok
$responsavel == "Todos" ? : 'filters' => array($campo_responsavel => array((int)$responsavel)), //ok
$atividade == "Todos" ? : 'filters' => array($campo_atividade => array('title' => $atividade)), // Title - error

));
Airton Lira

Please sign in to leave a comment.