Esempio n. 1
0
 /**
  * You can pass it new Section("My title") or new Section("my_id", "My Title");
  * So you give it a unique ID and a title to refer to it by.
  *
  * @param string $id_or_title
  * @param string $title
  */
 public function __construct($id_or_title, $title = null)
 {
     $id = $id_or_title;
     $this->_id = $this->_generateSafeID($id);
     $this->title = $title !== null ? $title : $id_or_title;
     SectionManager::registerSection($this);
 }