eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\DoctrineDatabase::loadObjectStateListData PHP Метод

loadObjectStateListData() публичный Метод

Loads data for all object states belonging to group with $groupId ID.
public loadObjectStateListData ( mixed $groupId ) : array
$groupId mixed
Результат array
    public function loadObjectStateListData($groupId)
    {
        $query = $this->createObjectStateFindQuery();
        $query->where($query->expr->eq($this->dbHandler->quoteColumn('group_id', 'ezcobj_state'), $query->bindValue($groupId, null, \PDO::PARAM_INT)))->orderBy($this->dbHandler->quoteColumn('priority', 'ezcobj_state'), $query::ASC);
        $statement = $query->prepare();
        $statement->execute();
        $rows = array();
        while ($row = $statement->fetch(\PDO::FETCH_ASSOC)) {
            $rows[$row['ezcobj_state_id']][] = $row;
        }
        return array_values($rows);
    }