permissions) ? in_array($str, $this->permissions) : TRUE; } /** * Get the permissioned where clause for the user. * * @param int $type * The type of permission needed. * @param array $tables * (reference ) add the tables that are needed for the select clause. * @param array $whereTables * (reference ) add the tables that are needed for the where clause. * * @return string * the group where clause for this user */ public function whereClause($type, &$tables, &$whereTables) { return '( 1 )'; } }