. */ Doctrine::autoload('Doctrine_Collection_Offset'); /** * Doctrine_Collection_Offset * Collection of Doctrine_Record objects. * * @package Doctrine * @subpackage Collection * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.com * @since 1.0 * @version $Revision$ * @author Konsta Vesterinen */ class Doctrine_Collection_Offset extends Doctrine_Collection { /** * @var integer $limit */ private $limit; /** * @param Doctrine_Table $table */ public function __construct(Doctrine_Table $table) { parent::__construct($table); $this->limit = $table->getAttribute(Doctrine::ATTR_COLL_LIMIT); } /** * @return integer */ public function getLimit() { return $this->limit; } /** * @return Doctrine_Collection_Iterator_Expandable */ public function getIterator() { return new Doctrine_Collection_Iterator_Expandable($this); } }