Source for file AdminList.php
Documentation is available at AdminList.php
* @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
* @copyright 2005, diemeisterei GmbH. All rights reserved.
* @author $Author: schmunk $
* @version $Revision: 601 $ $Date: 2007-02-24 23:49:30 +0100 (Sa, 24 Feb 2007) $
* @package Phundament.Packages
* List view of content administration
public function onInit($param)
parent :: onInit($param);
$this->Core= new LContentCore; // TODO - has to exist when deleting a record
#$this->Application->getModule("database")->getConnection("l_content", "propel");
public function onLoad($param)
$_ds = array(0 => "All Types");
$this->SearchType->setDataSource($_ds);
$this->SearchType->dataBind();
$this->Repeater->DataSource= $this->getViewstate("Records");
$this->Repeater->dataBind();
parent :: onLoad($param);
$this->Core->deleteRecordById($sender->getCommandParameter());
Prado :: trace("Redirecting ...", "Lithron.LContentCore");
Lithron :: saveLogging($this->Application);
$url= $this->Service->constructUrl("packages.LContent.AdminRecord",
array ("l_content_id" => $sender->getCommandParameter()), false);
$this->Response->redirect($url);
Prado :: trace("Redirecting ...", "Lithron.LContentCore");
Lithron :: saveLogging($this->Application);
$url= $this->Service->constructUrl("packages.LContent.AdminRecord");
$this->Response->redirect($url);
$Criteria->setSearchString($sender->Page->SearchString->getText());
$Criteria->setType($sender->Page->SearchType->getSelectedValue());
$status= $sender->Page->SearchStatus->getSelectedValue();
$Criteria->setStatus($status);
$culture= $sender->Page->SearchCulture->getSelectedValue();
$Criteria->setIgnoreCulture(true);
$owner= $sender->Page->SearchUser->getSelectedValue();
$c->addAnd(LContentPeer::USER, $this->User->Name);
$c->setLimit($sender->Page->SearchLimit->getSelectedValue());
LRightsManager::restrictCriteria($c, "LContentPeer", LPermissions::USAGE );
switch ($sender->Page->SearchOrder->getSelectedValue())
$c->addAscendingOrderByColumn(LContentPeer :: RANK);
$c->addAscendingOrderByColumn(LContentPeer :: HEADLINE);
$c->addDescendingOrderByColumn(LContentPeer :: LAST_EDIT);
$this->setViewstate("Records", $items);
$this->Repeater->DataSource= $items;
#$this->Repeater->ActivePageIndex = 0;
$this->Repeater->dataBind();
|