PugMoRe_Mageploy_Model_Io_File::getHistoryList PHP Method

getHistoryList() public method

public getHistoryList ( $limit = null )
    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;
    }

Usage Example

Example #1
0
 public function getAllActionsCount()
 {
     if (is_null($this->_io)) {
         $this->_io = new PugMoRe_Mageploy_Model_Io_File();
     }
     return count($this->_io->getHistoryList());
 }
All Usage Examples Of PugMoRe_Mageploy_Model_Io_File::getHistoryList