Example #1
0
 /**
  * Class constructor.
  * 
  * @access public
  */
 public function __construct()
 {
     $this->config = \Curator\Config\YAML::LoadFromFile(CURATOR_APP_DIR . DS . 'Config' . DS . 'media.yml');
 }
Example #2
0
 /**
  * Cleans the current project.
  * 
  * @access public
  */
 public function clean()
 {
     $manifest_path = $this->getProjectDirPath() . DS . 'manifest.yml';
     if (!is_file($manifest_path)) {
         throw new \Exception('Could not locate manifest at: ' . $manifest_path);
     }
     $manifest = \Curator\Config\YAML::LoadFromFile($manifest_path);
     \Curator\Console::stdout('Project Directory: ' . $this->getProjectDirPath());
     \Curator\Console::stdout('');
     $builder = new \Curator\Builder\Styles();
     $builder->setProject($this);
     \Curator\Console::stdout(' Cleaning styles…');
     $builder->clean();
     \Curator\Console::stdout('');
     $builder = new \Curator\Builder\Scripts();
     $builder->setProject($this);
     \Curator\Console::stdout(' Cleaning scripts…');
     $builder->clean();
     \Curator\Console::stdout('');
     $builder = new \Curator\Builder\Data();
     $builder->setProject($this);
     \Curator\Console::stdout(' Cleaning data…');
     $builder->clean();
     \Curator\Console::stdout('');
     $builder = new \Curator\Builder\Media();
     $builder->setProject($this);
     \Curator\Console::stdout(' Cleaning media…');
     $builder->clean();
     \Curator\Console::stdout('');
 }
Example #3
0
 /**
  * Loads the default values.
  *
  * @return Console
  * @access private
  */
 private function __construct()
 {
     $this->data = \Curator\Config\YAML::LoadFromFile(CURATOR_APP_DIR . DS . 'Config' . DS . 'templatedata.yml');
 }