Returns preferences' IDs from the option's ID

@param null|string $id_option
@return null|array
547095
public function retrieve_ids(string $id_option = null): ?array
  {
    return $this->_retrieve_ids($id_option, $this->id_user, $this->id_group);
  }
1338402
public function delete_user_option(string $id_option, string $id_user = null): ?int
  {
    if ( $id_option = $this->_get_id_option($id_option) ){
      return $this->db->delete($this->class_cfg['table'], [
        $this->fields['id_option'] => $id_option,
        $this->fields['id_user'] => $id_user ?: $this->id_user
      ]);
    }
    return null;
  }
668866
protected static function deleteOptionValueByIdAsyncWithHttpInfo($option_value_id) 
    {
        $returnType = '';  
        $request = self::deleteOptionValueByIdRequest($option_value_id); 

        return self::getHttpClient()
            ->sendAsync($request, self::createHttpClientOption())
            ->then(
                function ($response) use ($returnType) {
                    return [null, $response->getStatusCode(), $response->getHeaders()];
                },
                function ($exception) {
                    $response = $exception->getResponse();
                    $statusCode = $response->getStatusCode();
                    throw new ApiException(
                        sprintf(
                            '[%d] Error connecting to the API (%s)',
                            $statusCode,
                            $exception->getRequest()->getUri()
                        ),
                        $statusCode,
                        $response->getHeaders(),
                        $response->getBody()
                    );
                }
            );
    }
475361
public function read_option(string $id_option = null): ?bool
  {
    if ( bbn\str::is_uid($id_option) ){
      $root = self::get_option_id('options');
      $id_to_check = $this->opt->from_code('opt'.$id_option, $root);
      return $this->has($id_to_check, 'options');
    }
    return null;
  }
474734
function get_options_manager( $id, $load_options = false, $prefix_slug = true ) {
            return FS_Option_Manager::get_manager( ( $prefix_slug ? $this->_slug : '' ) . ( ( ! $prefix_slug || empty( $id ) ) ? '' : '_' ) . $id, $load_options );
        }
1352928
protected function foreignIDFilter($id = null)
    {
        if ($id === null) {
            $id = $this->getForeignID();
        }

        // Apply relation filter
        $key = "\"{$this->joinTable}\".\"{$this->foreignKey}\"";
        if (is_array($id)) {
            return ["$key IN (" . DB::placeholders($id) . ")"  => $id];
        }
        if ($id !== null) {
            return [$key => $id];
        }
        return null;
    }
556192
public function lists($id = null)
    {
        if ($id !== null) {
            $this->setId($id);
        }

        return $this->getList();
    }
645131
public function user_has(string $id_option, string $id_user): bool
  {
    return (bool)$this->_retrieve_ids($id_option, $id_user);
  }
929654
public function retrieve_group_ids(string $id_option = null, string $id_group): ?array
  {
    return $this->_retrieve_ids($id_option, null, $id_group);
  }
827343
public function get_value() {
		$key     = $this->options_key ?: $this->id;
		$options = $this->options->get( $key );

		if ( $key === $this->id ) {
			return $options;
		} elseif ( isset( $options[ $this->id ] ) ) {
			return $options[ $this->id ];
		} else {
			return null;
		}
	}
1179978
public function get_bits(string $id_usr_opt, $id_parent = false, bool $with_config = true): array
  {
    $c = $this->class_cfg['arch']['user_options_bits'];
    $t = $this;
    $where = [
      $c['id_user_option'] => $id_usr_opt
    ];
    if ( is_null($id_parent) || \bbn\str::is_uid($id_parent) ){
      $where[$c['id_parent']] = $id_parent;
    }
    if (
      \bbn\str::is_uid($id_usr_opt) &&
      ($bits = $this->db->rselect_all($this->class_cfg['tables']['user_options_bits'], [], $where, [$c['num'] => 'ASC']))
    ){
      if ( !empty($with_config) ){
        return array_map(function($b) use($t){
          return $t->explode_bit_cfg($b);
        }, $bits);
      }
      return $bits;
    }
    return [];
  }
232531
public static function get_menu_settings( $menu_id ) {
		$menu_settings = self::get( sprintf( 'menu_%d', $menu_id ) );
		$menu_settings = apply_filters( 'menu_icons_menu_settings', $menu_settings, $menu_id );

		if ( ! is_array( $menu_settings ) ) {
			$menu_settings = array();
		}

		return $menu_settings;
	}
316765
public static function getUidByClientId($client_id)
    {
        $data = static::select(array('uid'), array('client_id'=>array($client_id)));
        foreach ($data as $local_ip => $buffer_array) {
            foreach ($buffer_array as $local_port => $items) {
                //$items = ['connection_id'=>['uid'=>x, 'group'=>[x,x..], 'session'=>[..]], 'client_id'=>[..], ..];
                foreach ($items as $info) {
                    return $info['uid'];
                }
            }
        }
    }
49566
private static function get_fields_by_config( $config_id ) {
		$fields = [];
		foreach ( self::$fields as $field ) {
			if ( ( isset( $field['kirki_config'] ) && $config_id === $field['kirki_config'] ) || ( 'global' === $config_id || ! $config_id ) && ( 'global' === $field['kirki_config'] || ! $field['kirki_config'] ) ) {
				$fields[] = $field;
			}
		}
		return $fields;
	}
486367
public function getList($id = null)
    {
        if ($this->_mails) {
            if ($id != null && isset($this->_mails[$id])) {
                return [filesize($this->_path.'/'.$this->_mails[$id]['file_name'])];
            }

            $result = [];
            foreach ($this->_mails as $mail) {
                $result[] = filesize($this->_path.'/'.$mail['file_name']);
            }

            return $result;
        }

        return null;
    }
1186696
private function getId($options)
    {
        $id = '';
        if (!isset($options['id'])) {
            $id = $options['name'];
        } else {
            $id = $options['id'];
        }

        return $id;
    }
473432
public function get_full($id_option = null, string $type = 'page'): ?array
  {
    if ( $id_option = $this->_get_id_option($id_option, $type) ){
      return $this->pref->full_options($id_option ?: $this->get_current());
    }
    return null;
  }