1
0
mirror of synced 2025-01-31 04:21:44 +03:00

32 lines
749 B
PHP
Raw Normal View History

2006-05-30 08:59:08 +00:00
<?php
Doctrine::autoload('Doctrine_Collection');
/**
* Offset Collection
*/
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
2006-05-30 08:59:08 +00:00
*/
public function getIterator() {
return new Doctrine_Collection_Iterator_Expandable($this);
2006-05-30 08:59:08 +00:00
}
}