Exemplo n.º 1
0
 /**
  * Returns logger object.
  *
  * @param string $type
  * @return OW_Log
  */
 public static function getInstance($type)
 {
     if (self::$classInstances === null) {
         self::$classInstances = array();
     }
     if (empty(self::$classInstances[$type])) {
         self::$classInstances[$type] = new self($type);
     }
     return self::$classInstances[$type];
 }