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

loadTypeDataByIdentifier() public method

Loads an array with data about the type referred to by $identifier in $status.
public loadTypeDataByIdentifier ( string $identifier, integer $status ) : array(int=>array(string=>mixed))
$identifier string
$status integer
return array(int=>array(string=>mixed))
    public function loadTypeDataByIdentifier($identifier, $status)
    {
        $q = $this->getLoadTypeQuery();
        $q->where($q->expr->lAnd($q->expr->eq($this->dbHandler->quoteColumn('identifier', 'ezcontentclass'), $q->bindValue($identifier)), $q->expr->eq($this->dbHandler->quoteColumn('version', 'ezcontentclass'), $q->bindValue($status))));
        $stmt = $q->prepare();
        $stmt->execute();
        return $stmt->fetchAll(\PDO::FETCH_ASSOC);
    }