table = $mode[0]; $this->column = $mode[1]; $this->selectors = explode(',', $mode[2]); } // Checking permissions public function check($flag, $perm) { return ($flag & bindec($perm)) > 0; } // Getting rank permissions public function get($select) { // Combine $select into $selectors $select = array_slice($select, 0, count($this->selectors)); $select = array_combine($this->selectors, $select); } }