-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97846e8
commit 325ccc7
Showing
4 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
app/code/community/Jowens/JobQueue/Model/Source/LogLevel.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
if(file_exists(Mage::getBaseDir('lib').DS.'DJJob')){ | ||
set_include_path(get_include_path().PS.Mage::getBaseDir('lib').DS.'DJJob'); | ||
require_once('DJJob.php'); | ||
} | ||
else if(!class_exists('\DJJob')){ | ||
Mage::throwException('The class DJJob does not exist. Please add the class to /lib/DJJob/DJJob.php OR install DJJob via magento-composer-installer. See https://github.com/jkowens/magento-jobqueue for more details.'); | ||
} | ||
|
||
class Jowens_JobQueue_Model_Source_LogLevel | ||
{ | ||
/** | ||
* @return array | ||
*/ | ||
public function toOptionArray() | ||
{ | ||
return [ | ||
DJBase::DEBUG => 'DEBUG', | ||
DJBase::INFO => 'INFO', | ||
DJBase::WARN => 'WARN', | ||
DJBase::ERROR => 'ERROR', | ||
DJBase::CRITICAL => 'CRITICAL' | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters