Beispiel #1
0
 public function __construct($sPath, $sRegex)
 {
     $sPath = realpath(dirname($sPath));
     if (basename($sPath) == 'config') {
         $sPath = substr($sPath, 0, -7);
     }
     $sPath .= DIRECTORY_SEPARATOR;
     $this->setTemplatePath(VSC_RES_PATH . 'templates' . DIRECTORY_SEPARATOR);
     parent::__construct($sPath, $sRegex);
 }
Beispiel #2
0
 public function __construct($sPath = null, $sRegex = null)
 {
     if (is_null($sPath)) {
         $sPath = __FILE__;
     }
     if (is_null($sRegex)) {
         $sRegex = '.*';
     }
     parent::__construct($sPath, $sRegex);
 }
Beispiel #3
0
 public function __construct($sPath = null, $sRegex = null)
 {
     if (is_null($sPath)) {
         $sPath = __FILE__;
     }
     if (is_null($sRegex)) {
         $sRegex = '.*';
     }
     parent::addHeader('Accept', 'application/json');
     parent::__construct($sPath, $sRegex);
 }