public function __set($propertyName, $value) { global $firePHP; $return = ''; $return = parent::__set($propertyName, $value); switch ($propertyName) { case 'totalItems': case 'totalPages': case 'itemsPerPage': $this->totalPages = ceil((int) $this->totalItems / (int) $this->itemsPerPage); // fb::log('$this->totalPages = ' . $this->totalPages); // fb::log('$this->totalPages = ' . $this->totalPages); case 'itemOffset': case 'currentPage': if ((int) $this->currentPage < 2) { $this->itemOffset = 0; $this->currentPage = 1; } else { $this->itemOffset = ((int) $this->currentPage - 1) * (int) $this->itemsPerPage; } // fb::log('$this->itemOffset = ' . $this->itemOffset); break; } return $return; }
public function __construct($id = '', $text = 'click here', $url = '', $type = self::TYPE_DEFAULT, $size = self::SIZE_DEFAULT, $properties = null) { parent::__construct($id, $properties); $this->text = $text; $this->type = $type; $this->size = $size; $this->url = $url; // $this->class = $class; }
public function __construct($id = '', $value = '', $type = self::TYPE_DEFAULT, $properties = null) { // unset($this->type); // unset($this->value); // $this->addProperty('type', self::TYPE_DEFAULT); // $this->addProperty('value', ''); parent::__construct($id, $properties); $this->type = $type; $this->value = $value; }
public function __construct($id = '', $text = 'Submit', $actionType = self::ACTION_TYPE_DEFAULT, $type = self::TYPE_DEFAULT, $size = self::SIZE_DEFAULT, $properties = array()) { $this->actionType = $actionType; $this->text = $text; $this->type = $type; $this->size = $size; if ($this->type == self::TYPE_DEFAULT) { $this->type = $this->_actionTypeDefault[$this->actionType]; } parent::__construct($id, $properties); }
public function renderPostClientScript() { $return = ''; $return .= parent::renderPostClientScript(); return $return; }
public function __construct($anvilDataConnection = null, $sql = '', $id = 'anvilGrid', $mainClass = 'anvilGrid', $properties = null, $traceEnabled = false) { global $anvilGridCounter; $this->enableLog(); // $this->addProperty('rowOffset', 0); // $this->addProperty('maxRows', 25); // $this->addProperty('baseURL', ''); // $this->addProperty('baseQueryString', ''); // $this->addProperty('rowHoverClass', 'rowHover'); $this->columns = new anvilGridColumns(true); $this->db = $anvilDataConnection; $this->baseSQL = $sql; $this->htmlID = $id; // $this->statePrefix = $this->htmlID . '_'; $this->mainClass = $mainClass; $this->baseURL = $this->getPagePath(); $this->imagePath = $this->getBasePath() . '/images/'; $anvilGridCounter++; $this->statePrefix .= $anvilGridCounter . '_'; if (is_object($anvilDataConnection)) { $this->_dataEngine = constant(get_class($anvilDataConnection) . '::ENGINE'); } parent::__construct($id, $properties, $traceEnabled); $this->_addTraceInfo(__FILE__, __METHOD__, __LINE__, '... done (' . date('h:i:s A') . ')'); }
public function __construct($id = 0, $properties = null) { parent::__construct($id, $properties); // $this->enableLog(); $this->controls = new anvilCollection(); }