获取下一个关联需要的字段
@return array
766609
protected function getRelationFields() {
        $fields = [];
        foreach ($this->relations as $relation) {
            $fields = array_merge($fields, $relation->getLinkKeys());
        }
        return array_unique($fields);
    }
22052
public function getData()
  {
    if($this->logout)
    {
      $buttons = new MessageButton( MessageButton::TYPE_ACCOUNT_UNLINK, '');
    }
    else
    {
      $buttons = new MessageButton( MessageButton::TYPE_ACCOUNT_LINK, '', $this->url);
    }
    
    $result = [
      'title' => $this->title,
      'subtitle' => $this->subtitle,
      'image_url' => $this->image_url,
      'buttons' => [$buttons->getData()]
    ];
    return $result;
  }
487400
public function toArray()
    {
        return [
            'hard_quota' => $this->getHardQuota(),
            'soft_quota' => $this->getSoftQuota(),
            'soft_quota_percent' => $this->getSoftQuotaPercent(),
            'usage' => $this->getUsage(),
            'usage_percent' => $this->getUsagePercent(),
            'remaining_soft_quota' => $this->getRemainingSoftQuota(),
            'remaining_soft_quota_percent' => $this->getRemainingSoftQuotaPercent(),
            'remaining_hard_quota' => $this->getRemainingHardQuota(),
            'remaining_hard_quota_percent' => $this->getRemainingHardQuotaPercent(),
        ];
    }
9822
public function getFaxes()
    {
        $faxes = [];
        if ($this->entity->getFaxes()) {
            foreach ($this->entity->getFaxes() as $fax) {
                $faxes[] = $fax;
            }
        }

        return $faxes;
    }
754688
public function getData()
    {
        return [
            'recipient' => $this->user_ref ? ['user_ref' => $this->recipient] : ['id' => $this->recipient],
            'message' => [
                'text' => $this->text
            ],
            'tag'=> $this->tag,
            'notification_type'=> $this->notification_type,
            'messaging_type' => $this->messaging_type
        ];
    }
1205154
public function getKeywords()
    {
        $keywords = [];

        foreach ($this->config()->get('global_keywords') as $k => $v) {
            $keywords[] = '<strong>'.$k.'</strong> ' . $v;
        }

        if ($this->NotifyOnClass && class_exists($this->NotifyOnClass)) {
            $dummy = singleton($this->NotifyOnClass);
            if ($dummy instanceof NotifiedOn || $dummy->hasMethod('getAvailableKeywords')) {
                $myKeywords = $dummy->getAvailableKeywords();
                
                if (is_array($myKeywords)) {
                    foreach ($myKeywords as $keyword => $desc) {
                        $keywords[] = '<strong>'.$keyword.'</strong> - '.$desc;
                    }
                }
            }
        }

        return $keywords;
    }
257431
public function all()
    {
        $results = [];
        foreach ($this->index->getKeys() as $key) {
            $result = $this->get($key);
            $results[key($result)] = current($result);
        }

        return $results;
    }
822576
public function toArray()
    {
        return array(
            'id' => $this->id,
            'section' => $this->section,
            'title' => $this->title,
            'description' => $this->description,
            'position' => $this->position
        );
    }
885766
public function getData()
    {
        $data = $this->getBaseData();
        $data->searchType = 'subscriptionActive';
        $data->sorting->orderBy = 'id';
        $data->sorting->orderDescending = true;
        $data->paging->limit = $this->getLimit();
        $data->paging->offset = $this->getOffset();
        return $data;
    }
1044519
public function getData()
    {
        $return = [];

        foreach ($this->collections as $collection) {
            $return[$collection->name()] = $collection->items();
        }

        if (count($this->dump) != 0) {
            $return['dump'] = $this->dump;
        }

        return $return;
    }
738518
private function getConfig(): array
    {
        //静态化,只处理一次
        static $config;
        if ($config) return $config;

        // 读取整个数据连接的原始配置
        $origin = configDefault(null, 'database');
        if (!$origin or !is_array($origin)) {
            trigger_error("缺失数据库连接配置(database)", E_USER_ERROR);
        }

        //默认的读和写连接
        $defaultRead = $defaultWrite = null;

        //全部表配置
        $tables = [];

        //逐个查看原始配置,每一个是一个连接
        foreach ($origin as $key => $connect) {
            //配置文件中有一些不是连接用的配置项
            if (!is_int($key) and left($key, 1) == '_') {
                continue;
            }

            //访问模式
            $mode = $connect['mode'] ?? '读写';

            //如果本连接是默认连接
            if (isset($connect['default']) and $connect['default']) {
                //记录读和写的默认连接
                if (in_array($mode, ['读', '读写'])) {
                    $defaultRead = $connect['connect'];
                }
                if (in_array($mode, ['写', '读写'])) {
                    $defaultWrite = $connect['connect'];
                }
                continue;
            }

            //非默认连接,必须指定这个连接里有哪些表
            if (isset($connect['tables']) and is_array($connect['tables'])) :
                foreach ($connect['tables'] as $alias => $table) :
                    //如果未指定别名,则别名 与表名相同
                    if (is_numeric($alias)) {
                        $alias = $table;
                    }

                    //开始处理这个表的信息
                    if (!isset($tables[$alias])) {
                        $tables[$alias] = [];
                    }

                    //记录这个表的读连接和写连接
                    $tables[$alias]['table'] = $table;
                    if (in_array($mode, ['读', '读写'])) {
                        $tables[$alias]['read'] = $connect['connect'];
                    }
                    if (in_array($mode, ['写', '读写'])) {
                        $tables[$alias]['write'] = $connect['connect'];
                    }
                endforeach;
            endif;
        }

        //记录默认读和写连接
        $tables['_default'] = [
            'read' => $defaultRead,
            'write' => $defaultWrite
        ];

        //保存到静态变量中
        return $config = $tables;
    }
174458
public function getValues(): array
    {
        $enumeration = $this->enumeration;
        $values      = [];
        foreach ($this->getOrdinals() as $ord) {
            $values[] = $enumeration::byOrdinal($ord)->getValue();
        }
        return $values;
    }
148656
public function get(): array
    {
        /**
         * @var $queryObject   \Pecee\Pixie\QueryBuilder\QueryObject
         * @var $executionTime float
         * @var $start         float
         * @var $result        array
         */

        $queryObject = $this->getQuery();
        $this->connection->setLastQuery($queryObject);

        $this->fireEvents(EventHandler::EVENT_BEFORE_SELECT, $queryObject);

        $executionTime = 0;
        $startTime = microtime(true);

        if ($this->pdoStatement === null) {

            [$this->pdoStatement, $executionTime] = $this->statement(
                $queryObject->getSql(),
                $queryObject->getBindings()
            );
        }

        $result = \call_user_func_array([$this->pdoStatement, 'fetchAll'], $this->fetchParameters);
        $this->pdoStatement = null;

        $executionTime += microtime(true) - $startTime;

        $this->fireEvents(EventHandler::EVENT_AFTER_SELECT, $queryObject, [
            'execution_time' => $executionTime,
        ]);

        return $result;
    }
1022642
public function toArray()
    {
        return [
            'id' => $this->getId(),
            'nav_id' => $this->getNavId(),
            'lang' => $this->getLang(),
            'link' => $this->getLink(),
            'title' => Yii::$app->menu->encodeValue($this->title),
            'title_tag' => Yii::$app->menu->encodeValue($this->title),
            'alias' => $this->getAlias(),
            'description' => Yii::$app->menu->encodeValue($this->description),
            'keywords' => null,
            'create_user_id' => $this->createUserId,
            'update_user_id' => $this->updateUserId,
            'timestamp_create' => $this->getTimestampCreate(),
            'timestamp_update' => $this->getTimestampUpdate(),
            'is_home' => $this->getIsHome(),
            'parent_nav_id' => $this->getParentNavId(),
            'sort_index' => $this->sortIndex,
            'is_hidden' => (bool) $this->isHidden,
            'type' => $this->getType(),
            'redirect' => $this->getRedirect(),
            'container' => $this->getContainer(),
            'depth' => $this->getDept(),
        ];
    }
543947
public function getValues() {
        $result = array();

        foreach ($this->items as $key => $entry) {
            $result[] = $entry->value;
        }

        return $result;
    }
1112608
public function getValues()
    {
        $values = array();
        /** @var Input $input */
        foreach ($this->_inputs as $name => $input) {
            if (strlen($name) > 0) {
                $values[$name] = call_user_func_array(
                    [$input, 'getValue'],
                    [$name]
                );
            }
        }
        return $values;
    }
857171
protected function getValues()
    {
        $uri = uri();
        $key = $this->session->has($uri) ? $uri : request()->path();

        $params = $this->session->get($key . '.' . get_called_class());
        if (is_null($params) or ! isset($params['column']) or ! $params['column'] == $this->column) {
            return [];
        }
        if (!isset($params['value'])) {
            return [];
        }
        if (empty((array) $params['value'])) {
            $params = $this->session->get($uri);
            unset($params[get_called_class()]);
            $this->session->put($key, $params);
            $this->session->save();
        } else {
            return $params['value'];
        }
        return [];
    }