PhpExt : Grid [ class tree ] [ index ] [ all elements ]

Source for file IColumnCollection.php

Documentation is available at IColumnCollection.php

  1. <?php
  2. /**
  3.  * PHP-Ext Library
  4.  * http://php-ext.googlecode.com
  5.  * @author Sergei Walter <sergeiw[at]gmail[dot]com>
  6.  * @copyright 2008 Sergei Walter
  7.  * @license http://www.gnu.org/licenses/lgpl.html
  8.  * @link http://php-ext.googlecode.com
  9.  * 
  10.  *  Reference for Ext JS: http://extjs.com
  11.  * 
  12.  */
  13. /**
  14.  * @see PhpExt_AbstractCollection
  15.  */
  16. include_once 'PhpExt/AbstractCollection.php';
  17. /**
  18.  * @see PhpExt_Grid_IColumn
  19.  */
  20. include_once 'PhpExt/Grid/IColumn.php';
  21.  
  22.  
  23. /**
  24.  * Provides functionality to manage a PhpExt_Grid_ColumnConfigObject Collection
  25.  * 
  26.  * @package PhpExt
  27.  * @subpackage Grid
  28.  */
  29. {
  30.     
  31.     public function __construct($collection array()) {
  32.         parent::__construct($collection);            
  33.     }
  34.     
  35.     /**
  36.      * Adds a PhpExt_Grid_IColumn to the Collection
  37.      *
  38.      * @param PhpExt_Grid_IColumn $object 
  39.      * @param string $name 
  40.      * @return int the index of the new element
  41.      */
  42.     public function add(PhpExt_Grid_IColumn $object$name null{
  43.         return $this->addObject($object$name);
  44.     }
  45.     
  46.     /**
  47.      * Gets the Component with the key specified by $name
  48.      *
  49.      * @param string $name 
  50.      * @return PhpExt_Grid_IColumn 
  51.      */
  52.     public function getByName($name{
  53.         return $this->getObjectByName($name);
  54.     }
  55.     
  56.     /**
  57.      * Gets the Component in the specified index
  58.      *
  59.      * @param int $index 
  60.      * @return PhpExt_Grid_IColumn 
  61.      */
  62.     public function &getByIndex($index{
  63.         return $this->getObjectByIndex($index);
  64.     }
  65.             
  66. }

Documentation generated on Fri, 08 Aug 2008 15:55:25 -0500 by phpDocumentor 1.4.0