コード例 #1
0
 /**
  * Return the value of the attribute in base type int, string, null
  * 
  * @return mixed
  */
 public function getValue($returnObject = false)
 {
     $returnValue = null;
     if (!is_null($this->value)) {
         $returnValue = $returnObject ? $this->value : $this->value->getValue();
         //return mixed
     }
     return $returnValue;
 }
コード例 #2
0
 public function setValue($value)
 {
     if (!empty($value)) {
         parent::setValue($value);
     }
 }