コード例 #1
0
ファイル: ReflectionUtil.php プロジェクト: aeberh/php-movico
 public static function callMethod($object, $methodName, $argValues)
 {
     $method = new ReflectionMethod(get_class($object), $methodName);
     $result = $method->invokeArgs($object, $argValues);
     BeanLocator::storeBean($object);
     return $result;
 }
コード例 #2
0
ファイル: DatabaseCache.php プロジェクト: aeberh/php-movico
 public function resetSingle($entity, $id)
 {
     if (!$this->enabled) {
         return;
     }
     unset($this->cache[$entity][self::SINGLE][$id]);
     BeanLocator::storeBean($this);
 }