loadAllSectionData() abstract public method

Loads data for all sections.
abstract public loadAllSectionData ( ) : string[][]
return string[][]
Ejemplo n.º 1
0
 /**
  * Loads data for all sections.
  *
  * @return string[][]
  */
 public function loadAllSectionData()
 {
     try {
         return $this->innerGateway->loadAllSectionData();
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Ejemplo n.º 2
0
 /**
  * Get all section data
  *
  * @return \eZ\Publish\SPI\Persistence\Content\Section[]
  */
 public function loadAll()
 {
     $rows = $this->sectionGateway->loadAllSectionData();
     return $this->createSectionsFromArray($rows);
 }