You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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;
}
}