Beispiel #1
0
 /**
  * Returns class instance
  *
  * @return VIDEO_BOL_ClipDao
  */
 public static function getInstance()
 {
     if (null === self::$classInstance) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
 public static function getInstance()
 {
     if (!self::$classInstance instanceof SPVIDEOLITE_CLASS_ClipService) {
         self::$classInstance = new self();
         $class = new ReflectionClass('VIDEO_BOL_ClipService');
         $property = $class->getProperty('classInstance');
         $property->setAccessible(true);
         $property->setValue(self::$classInstance);
         $property->setAccessible(false);
         $property = $class->getProperty('clipDao');
         $property->setAccessible(true);
         $property->setValue(self::$classInstance->originalClassInstance, SPVIDEOLITE_BOL_ClipDao::getInstance());
         $property->setAccessible(false);
     }
     return self::$classInstance;
 }