Loads an array with data about the type referred to by $remoteId in
$status.

@param mixed $remoteId
@param int $status

@return array(int=>array(string=>mixed)) Data rows.
481512
public function loadTypeDataByRemoteId($remoteId, $status)
    {
        try {
            return $this->innerGateway->loadTypeDataByRemoteId($remoteId, $status);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
404922
public function loadRolesForContentObjects($contentIds, $status = Role::STATUS_DEFINED)
    {
        $query = $this->handler->createSelectQuery();
        if ($status === Role::STATUS_DEFINED) {
            $roleIdCondition = $query->expr->eq(
                $this->handler->quoteColumn('id', 'ezrole'),
                $this->handler->quoteColumn('role_id', 'ezuser_role_search')
            );
        } else {
            $roleIdCondition = $query->expr->eq(
                $this->handler->quoteColumn('version', 'ezrole'),
                $this->handler->quoteColumn('role_id', 'ezuser_role_search')
            );
        }

        $query->select(
            $this->handler->aliasedColumn($query, 'contentobject_id', 'ezuser_role'),
            $this->handler->aliasedColumn($query, 'id', 'ezrole'),
            $this->handler->aliasedColumn($query, 'name', 'ezrole'),
            $this->handler->aliasedColumn($query, 'version', 'ezrole'),
            $this->handler->aliasedColumn($query, 'id', 'ezpolicy'),
            $this->handler->aliasedColumn($query, 'function_name', 'ezpolicy'),
            $this->handler->aliasedColumn($query, 'module_name', 'ezpolicy'),
            $this->handler->aliasedColumn($query, 'original_id', 'ezpolicy'),
            $this->handler->aliasedColumn($query, 'identifier', 'ezpolicy_limitation'),
            $this->handler->aliasedColumn($query, 'value', 'ezpolicy_limitation_value')
        )->from(
            $query->alias(
                $this->handler->quoteTable('ezuser_role'),
                $this->handler->quoteIdentifier('ezuser_role_search')
            )
        )->leftJoin(
            $this->handler->quoteTable('ezrole'),
            $roleIdCondition
        )->leftJoin(
            $this->handler->quoteTable('ezuser_role'),
            $query->expr->eq(
                $this->handler->quoteColumn('role_id', 'ezuser_role'),
                $this->handler->quoteColumn('id', 'ezrole')
            )
        )->leftJoin(
            $this->handler->quoteTable('ezpolicy'),
            $query->expr->eq(
                $this->handler->quoteColumn('role_id', 'ezpolicy'),
                $this->handler->quoteColumn('id', 'ezrole')
            )
        )->leftJoin(
            $this->handler->quoteTable('ezpolicy_limitation'),
            $query->expr->eq(
                $this->handler->quoteColumn('policy_id', 'ezpolicy_limitation'),
                $this->handler->quoteColumn('id', 'ezpolicy')
            )
        )->leftJoin(
            $this->handler->quoteTable('ezpolicy_limitation_value'),
            $query->expr->eq(
                $this->handler->quoteColumn('limitation_id', 'ezpolicy_limitation_value'),
                $this->handler->quoteColumn('id', 'ezpolicy_limitation')
            )
        )->where(
            $query->expr->in(
                $this->handler->quoteColumn('contentobject_id', 'ezuser_role_search'),
                $contentIds
            )
        );

        $statement = $query->prepare();
        $statement->execute();

        return $statement->fetchAll(\PDO::FETCH_ASSOC);
    }
133160
public function lists($offset = 0, $count = 10, $statusList = array())
    {
        $params = array(
            'offset' => $offset,
            'count' => $count,
            'status_list' => $statusList,
        );

        $result = $this->http->jsonPost(self::API_LIST, $params);

        return $result['card_id_list'];
    }
1166579
public function loadRuleData($ruleId, int $status): array
    {
        $query = $this->getRuleSelectQuery();
        $query->where(
            $query->expr()->eq('r.id', ':id')
        )
        ->setParameter('id', $ruleId, Type::INTEGER);

        $this->applyStatusCondition($query, $status, 'r.status');

        return $query->execute()->fetchAll(PDO::FETCH_ASSOC);
    }
360133
public function updateStatusBatch(string $openid, string $status, array $list): array
    {
        return $this->httpClient->postJson('card/invoice/reimburse/updatestatusbatch', [
            'openid' => $openid,
            'reimburse_status' => $status,
            'invoice_list' => $list
        ]);
    }
855327
public function list(int $beginId = 0, int $limit = 50, string $status = 'CHECKING')
    {
        $params = [
            'begin_id' => $beginId,
            'limit' => $limit,
            'status' => $status,
        ];

        return $this->httpPostJson('card/submerchant/batchget', $params);
    }
500141
public function loadTypeData($typeId, $status)
    {
        $q = $this->getLoadTypeQueryBuilder();
        $q
            ->where($q->expr()->eq('c.id', ':id'))
            ->andWhere($q->expr()->eq('c.version', ':version'))
            ->setParameter('id', $typeId, ParameterType::INTEGER)
            ->setParameter('version', $status, ParameterType::INTEGER);

        return $q->execute()->fetchAll();
    }
871579
public function loadTagInfoByRemoteId($remoteId)
    {
        $row = $this->gateway->getBasicTagDataByRemoteId($remoteId);

        return $this->mapper->createTagInfoFromRow($row);
    }
673382
public function loadFieldDefinition($id, $status)
    {
        try {
            return $this->innerGateway->loadFieldDefinition($id, $status);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
1188091
static function fetch( $id, $asObject = true, $status = eZRSSExport::STATUS_VALID )
    {
        return eZPersistentObject::fetchObject( eZRSSExportItem::definition(),
                                                null,
                                                array( "id" => $id,
                                                       'status' => $status ),
                                                $asObject );
    }
843511
public function getFullTagDataByRemoteId($remoteId, array $translations = null, $useAlwaysAvailable = true)
    {
        try {
            return $this->innerGateway->getFullTagDataByRemoteId($remoteId, $translations, $useAlwaysAvailable);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
909389
public function getItemForPagination(
        string $status = '',
        string $text = '',
        string $url = '',
        string $rel = '',
        string $page = ''
    ): array {
        return [
            'status' => $status,
            'text'   => $text,
            'url'    => $url,
            'rel'    => $rel,
            'page'   => $page,
        ];
    }
100136
public function loadFieldDefinition($id, $status)
    {
        $q = $this->dbHandler->createSelectQuery();
        $this->selectColumns($q, 'ezcontentclass_attribute');
        $q->select([
                'ezcontentclass.initial_language_id AS ezcontentclass_initial_language_id',
                'ezcontentclass_attribute_ml.name AS ezcontentclass_attribute_multilingual_name',
                'ezcontentclass_attribute_ml.description AS ezcontentclass_attribute_multilingual_description',
                'ezcontentclass_attribute_ml.language_id AS ezcontentclass_attribute_multilingual_language_id',
                'ezcontentclass_attribute_ml.data_text AS ezcontentclass_attribute_multilingual_data_text',
                'ezcontentclass_attribute_ml.data_json AS ezcontentclass_attribute_multilingual_data_json',
            ]);
        $q->from(
            $this->dbHandler->quoteTable('ezcontentclass_attribute')
        )->leftJoin(
            'ezcontentclass',
            $q->expr->lAnd(
                $q->expr->eq('ezcontentclass_attribute.contentclass_id', 'ezcontentclass.id'),
                $q->expr->eq('ezcontentclass_attribute.version', 'ezcontentclass.version')
            )
        )->leftJoin(
            'ezcontentclass_attribute_ml',
            $q->expr->lAnd(
                $q->expr->eq('ezcontentclass_attribute.id', 'ezcontentclass_attribute_ml.contentclass_attribute_id'),
                $q->expr->eq('ezcontentclass_attribute.version', 'ezcontentclass_attribute_ml.version')
            )
        )->where(
            $q->expr->lAnd(
                $q->expr->eq(
                    $this->dbHandler->quoteColumn('id', 'ezcontentclass_attribute'),
                    $q->bindValue($id, null, \PDO::PARAM_INT)
                ),
                $q->expr->eq(
                    $this->dbHandler->quoteColumn('version', 'ezcontentclass_attribute'),
                    $q->bindValue($status, null, \PDO::PARAM_INT)
                )
            )
        );

        $stmt = $q->prepare();
        $stmt->execute();

        return $stmt->fetchAll(\PDO::FETCH_ASSOC);
    }
118485
public function loadContentInfoByRemoteId($remoteId)
    {
        $queryBuilder = $this->createLoadContentInfoQueryBuilder();
        $queryBuilder
            ->where('c.remote_id = :id')
            ->setParameter('id', $remoteId, ParameterType::STRING);

        $results = $queryBuilder->execute()->fetchAll(FetchMode::ASSOCIATIVE);
        if (empty($results)) {
            throw new NotFound('content', "remote_id: $remoteId");
        }

        return $results[0];
    }
1032962
public function run($id, $status)
    {
        $model = $this->findModel($id);
        $model->load(Yii::$app->request->post());
        $changedStatus = $model->sendToStatus($status);
        $model->save();

        return $this->response(
            $changedStatus,
            $model
        );
    }
536159
static public function fetchByRemoteID( $remoteID, $mainTranslation = false )
    {
        $tagsList = self::fetchList( array( 'remote_id' => $remoteID ), null, null, $mainTranslation );

        if ( is_array( $tagsList ) && !empty( $tagsList ) )
            return $tagsList[0];

        return null;
    }
984893
static function fetchByStatus( $statusID, $asObject = true )
    {
        if ( $statusID == 0 )
            return eZOrderStatus::createUndefined();
        return eZPersistentObject::fetchObject( eZOrderStatus::definition(),
                                                null,
                                                array( "status_id" => $statusID ),
                                                $asObject );
    }