eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway\DoctrineDatabase::loadTypeData PHP Method

loadTypeData() public method

Loads an array with data about $typeId in $status.
public loadTypeData ( mixed $typeId, integer $status ) : array
$typeId mixed
$status integer
return array Data rows.
    public function loadTypeData($typeId, $status)
    {
        $q = $this->getLoadTypeQuery();
        $q->where($q->expr->lAnd($q->expr->eq($this->dbHandler->quoteColumn('id', 'ezcontentclass'), $q->bindValue($typeId, null, \PDO::PARAM_INT)), $q->expr->eq($this->dbHandler->quoteColumn('version', 'ezcontentclass'), $q->bindValue($status, null, \PDO::PARAM_INT))));
        $stmt = $q->prepare();
        $stmt->execute();
        return $stmt->fetchAll(\PDO::FETCH_ASSOC);
    }