public function getHistoryList($limit = null) { $csv = new Varien_File_Csv(); $historyList = array(); try { $historyList = $csv->getData($this->_helper->getStoragePath() . $this->_helper->getAllActionsFilename()); if ($count = count($historyList)) { if ($limit && $count > $limit) { $historyList = array_slice($historyList, $count - $limit, $count, true); } } } catch (Exception $e) { $this->_helper->log($e->getMessage()); } return $historyList; }
public function getAllActionsCount() { if (is_null($this->_io)) { $this->_io = new PugMoRe_Mageploy_Model_Io_File(); } return count($this->_io->getHistoryList()); }