Source of file ConsoleModel.php
Size: 1,498 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/View/Model/ConsoleModel.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\View\Model; class ConsoleModel extends ViewModel { const RESULT = 'result'; /** * Console output doesn't support containers. * * @var string */ protected $captureTo = null; /** * Console output should always be terminal. * * @var bool */ protected $terminate = true; /** * Set error level to return after the application ends. * * @param int $errorLevel */ public function setErrorLevel($errorLevel) { $this->options['errorLevel'] = $errorLevel; } /** * @return int */ public function getErrorLevel() { if (array_key_exists('errorLevel', $this->options)) { return $this->options['errorLevel']; } } /** * Set result text. * * @param string $text * @return \Zend\View\Model\ConsoleModel */ public function setResult($text) { $this->setVariable(self::RESULT, $text); return $this; } /** * Get result text. * * @return mixed */ public function getResult() { return $this->getVariable(self::RESULT); } } |