示例#1
0
 /**
  * @param integer $version 
  * @return null
  */
 public function setVersion($version)
 {
     if (!isset($this->loadedFields['version'])) {
         $this->loadProperties();
     }
     $oldValue = null;
     if (array_key_exists('version', $this->loadedValues)) {
         $oldValue = $this->loadedValues['version'];
     }
     if ($oldValue === $version) {
         $this->version = $version;
         return;
     }
     return parent::setVersion($version);
 }