/** * @return X_SopCast */ public static function getInstance() { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; }
public function doStop($threadInfo) { X_SopCast::getInstance()->forceKill(); // wait few seconds sleep(2); //TODO tweak value better }
function __construct(Zend_Config $options) { $this->options = $options; if ($this->isEnabled()) { X_SopCast::getInstance()->setOptions($this->options); } }