コード例 #1
0
ファイル: UpdaterWithID.php プロジェクト: guancio/Runalyze
 /**
  * Tasks after insertion
  */
 protected function after()
 {
     parent::after();
     if (Cache::is($this->table() . $this->NewObject->id())) {
         Cache::delete($this->table() . $this->NewObject->id());
     }
 }
コード例 #2
0
ファイル: Entity.php プロジェクト: rob-st/Runalyze
 /**
  * Set array
  * @param string $key
  * @param mixed $value
  * @throws \InvalidArgumentException
  * @throws \RuntimeException
  */
 public function set($key, $value)
 {
     parent::set($key, $value);
     if ($key == self::GEOHASHES) {
         $this->setMinMaxFromGeohashes($value);
     }
 }
コード例 #3
0
ファイル: Entity.php プロジェクト: guancio/Runalyze
 /**
  * Synchronize
  */
 public function synchronize()
 {
     parent::synchronize();
     $this->ensureAllNumericValues();
 }
コード例 #4
0
ファイル: Entity.php プロジェクト: aschix/Runalyze
 /**
  * Synchronize
  */
 public function synchronize()
 {
     parent::synchronize();
     $this->ensureNullIfEmpty(self::IS_NIGHT, true);
     $this->ensureAllNumericValues();
     $this->synchronizeObjects();
 }