/**
  * Return the name of a form element.
  *
  * @return string
  */
 public function getName()
 {
     $name = parent::getName();
     if ('[]' !== substr($name, -2)) {
         return $name;
     }
     $length = strlen($name);
     return substr($name, 0, $length - 2);
 }
Beispiel #2
0
 /**
  * @return void
  */
 public function init()
 {
     parent::init();
     $this->setValue($this->getOption('value', array()));
 }
 public function removeThread($threadid)
 {
     foreach ($this->getThread($threadid)->getMessageIDs() as $messageid) {
         unset($this->messagethreads[$messageid]);
     }
     parent::removeThread($threadid);
     unset($this->threads[$threadid]);
     unset($this->threadslastpost[$threadid]);
 }
Beispiel #4
0
 /**
  * @return void
  */
 public function init()
 {
     parent::init();
     $this->value = $this->getOption('value', null);
 }