public function _createContent(&$toReturn) { //Création du sous template. $tpl = new CopixTpl(); CopixClassesFactory::fileInclude('cms|ServicesCMSPage'); CopixContext::push('cms'); $sHeadings = CopixClassesFactory::getInstanceOf('copixheadings|CopixHeadingsServices'); $headings = $sHeadings->getTree(); $cmsPages = new ServicesCMSPage(); $pages = $cmsPages->getList(); if (isset($this->_params['onlyLastVersion']) && $this->_params['onlyLastVersion'] == 1) { $pages = $this->_filterLastVersion($pages); } CopixContext::pop(); //pagination foreach ($pages as $page) { $arPages[$page->id_head][] = $page; } $tpl->assign('arPublished', $arPages); $tpl->assign('arHeadings', $headings); $tpl->assign('select', $this->getParam('select')); $tpl->assign('back', $this->getParam('back')); $tpl->assign('popup', $this->getParam('popup')); $tpl->assign('height', Copixconfig::get('htmleditor|height')); $tpl->assign('width', Copixconfig::get('htmleditor|width')); //$tpl->assign ('editorType' , CopixConfig::get('htmleditor|type')); $tpl->assign('editorName', $this->getParam('editorName')); $toReturn = $tpl->fetch('page.select.ptpl'); return true; }
/** * Retourne une source de données * * @param string $pType Type de source de données (exemple : dao) * @param array $pParams Paramètres pour la création du datasource * @return mixed */ public static function get($pType, $pParams) { switch ($pType) { case 'dao': return new CopixDaoDatasource($pParams); default: CopixClassesFactory::fileInclude($pType); $arDatasource = explode('|', $pType); return new $arDatasource[1]($pParams); break; } }
/** * Alias à CopixClassesFactory::fileInclude ($pClassId); * @param string $pClassId l'identifiant de la classe que l'on souhaite inclure * @return boolean */ function _classInclude($pClassId) { return CopixClassesFactory::fileInclude($pClassId); }
<?php /** * @package tools * @subpackage chart_swf * @author Landry Benguigui * @copyright 2001-2006 CopixTeam * @link http://copix.org * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file */ /** * @ignore */ CopixClassesFactory::fileInclude('chart_swf|SimpleSWFCharts'); /** * Diagramme en baton (vertical) * @package tools * @subpackage chart_swf * <code> * //exemple d'utilisation/creation de Column * CopixClassesFactory::fileInclude("Chart|ChartFactory"); * $factory = ChartFactory::getChartFactory(); * $column = $factory->createColumn(); * $column->setPlot("Label",array("libelle1"=>valeur1,"libelle2"=>valeur2,"lebelle3"=>valeur3)); * //Je veux un diagramme en 3D * $column->setOption("3d"=>true); * //je veux mettre stacker mes batons * $column->setOption("stacked"=>true); * //La fonction chart renvoie le code html a placé dans le tpl pour afficher le diagramme * $tpl->assign("Diagramme",$column->getChart()); * </code>
/** * Includes the user class definition * @access public */ function beforeSessionStart() { $sel = CopixClassesFactory::fileInclude($this->config->class_name); }