- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
/**
* Set flag indicating whether or not request has been dispatched
*
* @param boolean $flag
* @return Zend_Controller_Request_Abstract
*/
public function setDispatched($flag = true)
{
$this->_dispatched = $flag ? true : false;
return $this;
}
$this->_dispatched = (bool)$flag;
public function setDispatched($flag)
{
if($flag is empty)
$this->dispatched = true;
else
$this->_dispatched = $flag;
return $this;
}
ржу нимагу
тот хотябы в $this->_dispatched запишет булёво значение
$this->_dispatched = (boolean) $flag;
Это PHP и это нормальная практика, а быдло считает, что такой прием недопустим и PHP это зло...
$obj->setDispatcher()->setEcheShtoto();
как то так ))