Example #1
0
 /**
  * Constructor.
  * @param String $rigClient rig client URL
  * @param int $left the amount to push left (optional)
  * @param int $right the amount to push right (optional)
  * @param int $rightTop the vertical offset of right (optional)
  */
 public function __construct($rigClient, $left = 0, $right = 0, $rightTop = 0)
 {
     parent::__construct($rigClient);
     $this->_leftPush = $left;
     $this->_rightPush = $right;
     $this->_rightTop = $rightTop;
 }
Example #2
0
 public function __construct($rig, $params = array(), $applet = 'ssaharardpapplet.jar')
 {
     parent::__construct($rig);
     $this->_view->applet = $applet;
     $this->_view->params = $params;
     $this->_view->height = 95;
 }
Example #3
0
 public function __construct($rig, $options = array())
 {
     parent::__construct($rig);
     /* Load in any other format descriptions. */
     $descs = $this->_config->cameradesc;
     if (!is_null($descs)) {
         $this->_formats = array_merge($this->_formats, $descs->toArray());
     }
     foreach ($options as $k => $v) {
         switch ($k) {
             case 'draggable':
                 $this->_draggable = $v;
                 break;
         }
     }
 }
Example #4
0
 public function __construct($rig, $options = array())
 {
     parent::__construct($rig);
     if (!is_array($options)) {
         return;
     }
     foreach ($options as $o => $v) {
         switch ($o) {
             case 'domain':
                 $this->_useDomain = $v;
                 break;
             case 'generaterdp':
                 $this->_generateRDP = $v;
                 break;
             case 'rdpfile':
                 $this->_rdpFileName = $v;
                 break;
         }
     }
 }
Example #5
0
 public function __construct($rig, $name, $buttons = array(), $options = array())
 {
     parent::__construct($rig);
     $this->_name = $name;
     if (is_array($buttons)) {
         $this->_buttons = $buttons;
     } else {
         $this->_buttons = array();
     }
     /* Default options. */
     $this->_view->isHoriz = true;
     $this->_view->left = 0;
     $this->_view->top = 0;
     $this->_view->width = 60;
     $this->_view->height = 60;
     if (is_array($options)) {
         foreach ($options as $o => $v) {
             $this->setOption($o, $v);
         }
     }
 }