/** * Create the presentation list from the resulting xml */ public function __construct($xml) { $xml = simplexml_load_string($xml); parent::__construct($xml); $user = new Videojuicer_User($xml); $this->user = $user; }
/** * Create the presentation list from the resulting xml */ public function __construct($xml) { $xml = simplexml_load_string($xml); parent::__construct($xml); $presentation = new Videojuicer_Presentation($xml); $this->presentation = $presentation; }
/** * Create the presentation list from the resulting xml */ public function __construct($xml) { $xml = simplexml_load_string($xml); parent::__construct($xml); $list = new Videojuicer_User_List(); $items = $xml->items->user; foreach ($items as $item) { $obj = new Videojuicer_User($item); $list->add($obj); } $this->users = $list; }
/** * Create the presentation list from the resulting xml */ public function __construct($xml) { $xml = simplexml_load_string($xml); parent::__construct($xml); $presentations = new Videojuicer_Presentation_List(); $items = $xml->items->presentation; foreach ($items as $item) { $presentation = new Videojuicer_Presentation($item); $presentations->add($presentation); } $this->presentations = $presentations; }
/** * Create the presentation list from the resulting xml */ public function __construct($xml) { parent::__construct($xml); print_r($xml); }
/** * Create a token object from the data */ public function __construct($data) { parent::__construct($data); $unauthorized_token = new Videojuicer_Token_Unauthorized($data); Videojuicer::set_request_token($unauthorized_token); }
/** * Create a token object from the data */ public function __construct($data) { parent::__construct($data); $authorized_token = new Videojuicer_Token_Authorized($data); Videojuicer::set_access_token($authorized_token); }
/** * Parse the xml */ public function __construct($xml) { $xml = simplexml_load_string($xml); parent::__construct($xml); $this->html = $xml->html; }