Filters and check boxes

23 views
Skip to first unread message

icanscream

unread,
Jun 7, 2012, 9:25:18 PM6/7/12
to PorPOISe
I want to compare the poi type that i have with the checkbox list
option selected...any help in the $checkboxlist object so i can access
the value returned? thanks in advance!

This doesn´t seem to work:


<?php

class MyPOIConnector extends SQLPOIConnector {
public function passesFilter(POI $poi, Filter $filter = NULL)
{
/*
* Always return TRUE if no filter is given
*/
if (empty($filter->checkboxlist)) {
/* no boxes checked, type doesn't matter */
return TRUE;
} else {

if (in_array($poi->icon->type, $filter->checkboxlist)) {
return TRUE;
}
}

return FALSE;
}
}
Reply all
Reply to author
Forward
0 new messages