/**
  * @see sfTask
  */
 protected function execute($arguments = array(), $options = array())
 {
     $themeImport = new w3sThemeImport();
     $events = $themeImport->publishAssets($arguments, $options);
     foreach ($events as $event) {
         $this->dispatcher->notify(new sfEvent($this, 'application.log', array($event)));
     }
 }
 public function executeRemove($request)
 {
     if ($request->hasParameter('themeName')) {
         $theme = new w3sThemeImport();
         $theme->remove($request->getParameter('themeName'));
         return $this->renderPartial('refresh');
     } else {
         $this->getResponse()->setStatusCode(404);
         $message = w3sCommonFunctions::toI18n('themeName parameter is required.');
         return $this->renderText(w3sCommonFunctions::displayMessage($message, 'error', true));
     }
 }
Exemple #3
0
<?php

/*
 * This file is part of the w3studioCMS package library and it is distributed 
 * under the LGPL LICENSE Version 2.1. To use this library you must leave 
 * intact this copyright notice.
 *  
 * (c) 2007-2008 Giansimon Diblas <*****@*****.**>
 *  
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * For extra documentation and help please visit http://www.w3studiocms.com
 */
use_helper('I18N', 'Javascript');
$theme = new w3sThemeImport();
echo $theme->drawThemes(DbFinder::from('W3sProject')->find());