Exemplo n.º 1
0
 public function addElement($sName, form\Type $element = null)
 {
     switch ($sName) {
         case 'email':
             $element->setValue($element->getValue() . $this->read('add'));
             break;
     }
     return parent::addElement($sName, $element);
 }
Exemplo n.º 2
0
 protected function getDefault()
 {
     $sResult = parent::getDefault();
     if ($sResult === '') {
         $this->launchException('Empty string not allowed as integer');
     }
     return $sResult;
 }
Exemplo n.º 3
0
 public function addElement($sName, Type $element)
 {
     $element->setHandler($this);
     $this->aElements[$sName] = $element;
 }