Loads data for all Types in $status in $groupId.
abstract public loadTypesDataForGroup ( mixed $groupId, integer $status ) : string[][] | ||
$groupId | mixed | |
$status | integer | |
리턴 | string[][] |
/** * Loads data for all Types in $status in $groupId. * * @param mixed $groupId * @param int $status * * @return string[][] */ public function loadTypesDataForGroup($groupId, $status) { try { return $this->innerGateway->loadTypesDataForGroup($groupId, $status); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }
/** * @param mixed $groupId * @param int $status * * @return Type[] */ public function loadContentTypes( $groupId, $status = 0 ) { return $this->mapper->extractTypesFromRows( $this->contentTypeGateway->loadTypesDataForGroup( $groupId, $status ) ); }