Exemplo n.º 1
0
 /**
  * Set up a koala_user for a steam_user.
  *
  * @param Object $steam_user the steam_user that shall be
  *   represented by the koala_user
  */
 public function __construct($steam_user)
 {
     if (!is_object($steam_user) || !$steam_user instanceof steam_user) {
         throw new Exception("No valid steam_user provided", E_PARAMETER);
     }
     parent::__construct($steam_user);
 }
Exemplo n.º 2
0
 public function __construct($group)
 {
     if (!$group instanceof steam_group) {
         throw new Exception("Param is not a steam_group");
     }
     parent::__construct($group);
 }
Exemplo n.º 3
0
 /**
  * Set up a koala_container for a steam_container.
  *
  * @param Object $steam_container the steam_container that shall be
  *   represented by the koala_container
  * @param String $link_base the link base for this container (as a string),
  *   or FALSE if you don't need or don't know the link base. If the link
  *   base will be needed (e.g. when getting the context menu or link path,
  *   then the link base will be calculated if not set).
  */
 public function __construct($steam_container, $link_base = FALSE)
 {
     if (!is_object($steam_container) || !$steam_container instanceof steam_container) {
         throw new Exception("No valid steam_container provided", E_PARAMETER);
     }
     parent::__construct($steam_container);
     if (is_string($link_base)) {
         $this->link_base = $link_base;
     }
     $this->set_types_visible();
     $this->set_types_invisible();
     $this->set_obj_types_visible();
     $this->set_obj_types_invisible();
 }
Exemplo n.º 4
0
 function __construct($description_file)
 {
     $em = extensionmanager::get_extensionmanager();
     $this->description_file = $description_file;
     $this->values = $this->parse_description_file($this->description_file);
     $this->name = $this->values['name'];
     $this->path = $this->values['path'];
     $this->description = $this->values['description'];
     $this->obj_type = $this->values['obj_type'];
     $this->classtype = $this->values['classtype'];
     $this->category = $this->values['category'];
     $this->enabled_default = $this->values['enabled_default'] === "TRUE" ? TRUE : FALSE;
     $this->requirements = $this->values['req_modules'];
     parent::__construct(steam_factory::get_object_by_name($GLOBALS["STEAM"]->get_id(), "/config/koala/extensions/" . $this->get_name()));
 }
Exemplo n.º 5
0
 public function __construct($steam_object, $unit)
 {
     parent::__construct($steam_object);
     $this->unit = $unit;
 }