/** * Add commands that attach objects to the entry. * @param JOB $entry * @param PROJECT $folder Entry is in this folder (also available as $entry- * >parent_folder ()). * @param USER $creator Folder belongs to this user (also available as $folder->creator ()). * @access private */ protected function _add_creators($entry) { parent::_add_creators($entry); $folder_id = $entry->parent_folder_id(); $cmd = $this->make_command(); $cmd->id = 'new_change'; $cmd->caption = 'Add change'; $cmd->link = "create_change.php?id={$folder_id}&job_id={$entry->id}"; $cmd->icon = '{app_icons}buttons/new_change'; $cmd->executable = $this->login->is_allowed(Privilege_set_entry, Privilege_create, $entry); $this->append($cmd); }