/** * Reset arguments * * @param boolean $reset reset arguments if you need * * @return boolean if is reset * @since 1.0.0 **/ protected function _resetArgs($reset = null) { $reset = parent::_resetArgs($reset); if ($reset) { if ($this->method == 'getElementsByID') { $this->_elementsID = array(); } elseif ($this->method == 'getElementsByItemID') { $this->_itemsID = array(); $this->_elementsItemsID = array(); } } return $reset; }
/** * Reset arguments * * @param boolean $reset reset arguments if you need * * @return boolean if is reset * @since 1.0.0 **/ protected function _resetArgs($reset = null) { $reset = parent::_resetArgs($reset); if ($reset) { if ($this->method == 'getFieldsByID') { $this->_fieldsID = array(); } elseif ($this->method == 'getFieldsByModeID') { $this->_modes = array(); } } return $reset; }