eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway::insertSection PHP Method

insertSection() abstract public method

Inserts a new section with $name and $identifier.
abstract public insertSection ( string $name, string $identifier ) : integer
$name string
$identifier string
return integer The ID of the new section
    public abstract function insertSection($name, $identifier);

Usage Example

Esempio n. 1
0
 /**
  * Create a new section
  *
  * @param string $name
  * @param string $identifier
  *
  * @return \eZ\Publish\SPI\Persistence\Content\Section
  */
 public function create($name, $identifier)
 {
     $section = new Section();
     $section->name = $name;
     $section->identifier = $identifier;
     $section->id = $this->sectionGateway->insertSection($name, $identifier);
     return $section;
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway::insertSection