Phundament-Packages
[ class tree: Phundament-Packages ] [ index: Phundament-Packages ] [ all elements ]

Source for file LMetaTextContainer.php

Documentation is available at LMetaTextContainer.php

  1. <?php
  2.  
  3.  
  4. /**
  5.  * class file.
  6.  *
  7.  * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
  8.  * @copyright 2005, diemeisterei GmbH. All rights reserved.
  9.  * @author $Author: schmunk $
  10.  * @version $Revision: 347 $  $Date: 2006-10-25 00:28:33 +0000 (Mi, 25 Okt 2006) $
  11.  * @package Phundament.Packages
  12.  * @subpackage LMetaText
  13.  */
  14.  
  15. /**
  16.  * Default display template for media files
  17.  *
  18.  * Extends this class, if you need your own templates.
  19.  *
  20.  * @package System.Web.UI.WebControls
  21.  * @subpackage MetaData
  22.  */
  23.  
  24. {
  25.     private $_info;
  26.     private $Core;
  27.  
  28.     /**
  29.      * prepares datas
  30.      * @todo array sorting
  31.      */
  32.     function onPreRender($param)
  33.     {
  34.         parent::onPreRender($param);
  35.  
  36.         if (is_array($this->getData()))
  37.             foreach ($this->getData(AS $d)
  38.             {
  39.                 $ids[]$d['MetaRecordId'];
  40.                 $this->_info[$d['MetaRecordId']]array (
  41.                     $d['Description'],
  42.                     $d['Rank']
  43.                 );
  44.             }
  45.         else
  46.         {
  47.             $idsarray ();
  48.             $this->setVisible(false);
  49.             return;
  50.         }
  51.  
  52.         $c new LMetaTextCriteria;
  53.         $c->setRecordIds($ids);
  54.  
  55.         $itemsLMetaTextCore :: queryRecords($c->build());
  56.         $this->Repeater->DataSource$items;
  57.         $this->Repeater->dataBind();
  58.  
  59.         return;
  60.     }
  61.  
  62.     function updateItem($sender$param)
  63.     {
  64.         $id$param->getItem()->MetaRecordId->Text;
  65.         $param->getItem()->Description->Text$this->_info[$id][0];
  66.     }
  67. }
  68. ?>

Documentation generated on Sun, 25 Feb 2007 16:11:14 +0100 by phpDocumentor 1.3.1