Exemple #1
0
 protected function createWindowFile(fs\file $file)
 {
     $sResult = '';
     switch ($file->getExtension()) {
         case 'php':
             $this->throwException('Cannot read php files');
         default:
             $window = $this->create('window', array($this->getInitializer()));
             $sResult = $this->loadWindowFile($file, $window);
             break;
     }
     return $sResult;
 }
Exemple #2
0
 protected function readFile(fs\file $file)
 {
     $sResult = '';
     switch ($file->getExtension()) {
         case 'css':
             $sResult = parent::readFile($file);
             break;
         case 'less':
             $sResult = $this->parse($this->parseLess($file), $file->getParent());
             break;
         default:
             $this->launchException('Uknown extension type');
     }
     return $sResult;
 }
Exemple #3
0
 protected function prepareMain(fs\file $file, core\argument $args, core\argument $post)
 {
     switch ($file->getExtension()) {
         case 'vml':
             $result = $this->runScript($file, $args, $post);
             break;
         default:
             $this->launchException('Unknown extension for window content');
     }
     if (!$result) {
         $result = '';
         //$this->launchException('No content for main window');
     }
     return $result;
 }