Source for file LContainerCore.php
Documentation is available at LContainerCore.php
* @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
* @copyright 2005, diemeisterei GmbH. All rights reserved.
* @author $Author: schmunk $
* @version $Revision: 237 $ $Date: 2006-05-31 01:45:51 +0200 (Mi, 31 Mai 2006) $
* @package Phundament.Packages
* Basic functions for bricks & cell, i.e. search
if (Prado::getPathOfAlias("LContainer") === null)
Prado :: setPathOfAlias("LContainer", dirname(__FILE__ ));
Prado :: using("LContainer.db.propel.*");
Prado :: using("LContainer.db.propel.l_container.*");
if (isset ($this->_map[$brickClass][$brickId]))
Prado :: trace(count($this->_map[$brickClass][$brickId]) . " pages found for {$brickClass} {$brickId}", "Lithron.LContainer");
return ($this->_map[$brickClass][$brickId]);
Prado :: trace("No pages found {$brickClass} {$brickId}", "Lithron.LContainer");
$conn= $this->Application->getModule("database")->getConnection("l_container", "propel");
if (!$this->User->isInRole("Root")) $c->add(LContainerBrickPeer :: STATUS, 1);
#$c->add(LContainerBrickPeer :: PAGE, $this->Service->getServicePage());
#$c->addAscendingOrderByColumn(LContainerBrickPeer :: RANK);
$all= LContainerBrickPeer :: doSelect($c, $conn);
foreach ($all AS $record)
if (!isset ($array['ContentId']))
#echo $array['ContentId'];
$this->_map[$record->getControl()][$array['ContentId']][]= $record->getPage();
|