function __construct($siteID, $nodeID) { $this->site_id = $siteID; $this->node_id = $nodeID; // init core $core = core::selfie(); $this->psat = core::module('sat'); $this->collection = $this->psat->get_node_handle(); if (!($this->site = $this->psat->get_site($this->site_id))) { throw new tf_exception('Bad site'); } if (!($this->node = $this->psat->get_node($this->node_id))) { throw new tf_exception('Bad node'); } }