Ejemplo n.º 1
0
 public static function callMethod($object, $methodName, $argValues)
 {
     $method = new ReflectionMethod(get_class($object), $methodName);
     $result = $method->invokeArgs($object, $argValues);
     BeanLocator::storeBean($object);
     return $result;
 }
Ejemplo n.º 2
0
 public function resetSingle($entity, $id)
 {
     if (!$this->enabled) {
         return;
     }
     unset($this->cache[$entity][self::SINGLE][$id]);
     BeanLocator::storeBean($this);
 }