Exemple #1
0
 public function toPhpValue()
 {
     if (null === $this->getDefault()) {
         return parent::toPhpValue();
     }
     return "'{$this->getDefault()}'";
 }
Exemple #2
0
 public function toPhpValue()
 {
     if (null === $this->getDefault()) {
         return parent::toPhpValue();
     }
     return intval($this->getDefault());
 }
Exemple #3
0
 /**
  *
  * @param \G\Tab\DataType_Abstract $field
  */
 protected function toAttributeItem($field)
 {
     $str = "\n" . $field->toAttributeComment() . '    protected $' . $field->toAttributeName() . " = " . $field->toPhpValue() . ";\n";
     return $str;
 }