public function get_all(string $id_option = null, string $type = 'page'): ?array
  {
    if ( $id_option = $this->_get_id_option($id_option, $type) ){
      return $this->pref->options($id_option ?: $this->get_current());
    }
    return null;
  }
public function get_all(string $id_option = null, string $type = 'page'): ?array
  {
    if ( $id_option = $this->_get_id_option($id_option, $type) ){
      return $this->pref->options($id_option ?: $this->get_current());
    }
    return null;
  }
public function get_all ( string $ id_option = null , string $ type = 'page' ) : ? array { if ( $ id_option = $ this -> _get_id_option ( $ id_option , $ type ) ) { return $ this -> pref -> options ( $ id_option ? : $ this -> get_current ( ) ) ; } return null ; }
Returns the full list of permissions existing in the given option

@param null|string $id_option
@param string $type
@return null|array
Returns the full list of permissions existing in the given option