/** * Update the totalCount * @param integer $totalCount */ public function update($totalCount) { $this->_totalCount = (int) $totalCount; App::getInstance()->storage->set('pagination' . $this->_owner->getName(), $this->_totalCount); }