public function __get($property)
{
$property = strtolower($property);
switch ($property) {
case 'column':
return $this->getColumn($this->defaultIterator());
case 'columns':
return $this->getColumns();
case 'current':
return $this->getCurrent();
case 'end':
return $this->getEnd();
case 'index':
return $this->getIndex();
case 'length':
return $this->getLength();
case 'limit':
return $this->getLimit();
case 'name':
return $this->getName();
case 'row':
return $this->getRow();
case 'start':
return $this->getStart();
case 'count':
return $this->getTotalCount();
case 'at_beginning':
return $this->getIndex() == $this->getStart() + 1;
case 'at_end':
return $this->getIndex() == $this->getEnd();
case 'has_next_elements':
return $this->hasNextElements();
case 'has_previous_elements':
return $this->hasPreviousElements();
case 'previous_start':
return $this->getPrevStart();
case 'next_start':
return $this->getNextStart();
case 'id':
return $this->id;
default:
$errorMessage = INVALID_PROPERTY_STRING . " {$property} " . OF_OBJECT_STRING . ' list';
\CampTemplate::singleton()->trigger_error($errorMessage);
}
}