/** * insert all commands into html code * * @access public * @param boolean $a_use_asynch use_asynch * @param boolean $a_get_asynch_commands get_asynch_commands * @param string $a_asynch_url async url */ public function insertCommands($a_use_asynch = false, $a_get_asynch_commands = false, $a_asynch_url = '') { global $ilUser; /** *@var $this->plugin ilPlugin */ $this->plugin->includeClass('class.ilObjAdobeConnectAccess.php'); if (!ilObjAdobeConnectAccess::_hasMemberRole($ilUser->getId(), $this->ref_id) && !ilObjAdobeConnectAccess::_hasAdminRole($ilUser->getId(), $this->ref_id)) { /** * $this->commands is initialized only once. appending the join-button * at this point will produce N buttons for the Nth item */ $this->commands = array_reverse(array_merge($this->initCommands(), array(array('permission' => 'visible', 'cmd' => 'join', 'txt' => $this->txt('join'), 'default' => true), array('permission' => 'visible', 'cmd' => 'join', 'txt' => $this->txt('join'), 'default' => false)))); $this->info_screen_enabled = false; } else { $this->commands = $this->initCommands(); } return parent::insertCommands($a_use_asynch, $a_get_asynch_commands, $a_asynch_url); }
/** * inititialize new item * * * @param int $a_ref_id reference id * @param int $a_obj_id object id * @param string $a_title title * @param string $a_description description */ function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "") { //Don't display some options $this->copy_enabled = false; parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description); }