public function canEditFieldsOf($table) { if ($this->isAdmin) { return true; } return count(preg_grep('/^' . preg_quote($table, '/') . '::/', $this->alexf)) > 0; }