PugMoRe_Mageploy_Model_Io_File::getPendingList PHP Méthode

getPendingList() public méthode

public getPendingList ( )
    public function getPendingList()
    {
        $csv = new Varien_File_Csv();
        $pendingList = array();
        try {
            $todoList = $csv->getData($this->_helper->getStoragePath() . $this->_helper->getAllActionsFilename());
            $doneList = $csv->getData($this->_helper->getStoragePath() . $this->_helper->getExecutedActionsFilename());
            $todo = array();
            $done = array();
            foreach ($todoList as $k => $v) {
                $todo[$k] = implode('|', $v);
            }
            foreach ($doneList as $k => $v) {
                $done[$k] = implode('|', $v);
            }
            foreach (array_diff($todo, $done) as $k => $v) {
                $pendingList[$k] = $todoList[$k];
            }
        } catch (Exception $e) {
            $this->_helper->log($e->getMessage());
        }
        return $pendingList;
    }

Usage Example

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