echo html::a($this->createLink('bug', 'view', "bugID={$bug->id}", '', true), $bug->title, '', 'class="kanbanFrame" title="' . $bug->title . '"'); ?> <div class='board-actions'> <button type='button' class='btn btn-mini btn-link btn-info-toggle'><i class='icon-angle-down'></i></button> <div class='dropdown'> <button type='button' class='btn btn-mini btn-link dropdown-toggle' data-toggle='dropdown'> <span class='icon-ellipsis-v'></span> </button> <div class='dropdown-menu pull-right'> <?php echo (common::hasPriv('bug', 'assignTo') and bugModel::isClickable($bug, 'assignTo')) ? html::a($this->createLink('bug', 'assignTo', "bugID={$bug->id}", '', 'true'), $lang->bug->assignTo, '', "class='kanbanFrame'") : ''; echo (common::hasPriv('bug', 'resolve') and bugModel::isClickable($bug, 'resolve')) ? html::a($this->createLink('bug', 'resolve', "bugID={$bug->id}", '', 'true'), $lang->bug->resolve, '', "class='kanbanFrame'") : ''; echo (common::hasPriv('bug', 'activate') and bugModel::isClickable($bug, 'activate')) ? html::a($this->createLink('bug', 'activate', "bugID={$bug->id}", '', 'true'), $lang->bug->activate, '', "class='kanbanFrame'") : ''; echo (common::hasPriv('bug', 'close') and bugModel::isClickable($bug, 'close')) ? html::a($this->createLink('bug', 'close', "bugID={$bug->id}", '', 'true'), $lang->bug->close, '', "class='kanbanFrame'") : ''; echo (common::hasPriv('bug', 'edit') and bugModel::isClickable($bug, 'edit')) ? html::a($this->createLink('bug', 'edit', "bugID={$bug->id}", '', 'true'), $lang->bug->edit, '', "class='kanbanFrame'") : ''; echo (common::hasPriv('bug', 'delete') and bugModel::isClickable($bug, 'delete')) ? html::a($this->createLink('bug', 'delete', "bugID={$bug->id}"), $lang->bug->delete, 'hiddenwin') : ''; ?> </div> </div> </div> </div> <div class='board-footer clearfix'> <span class='bug-id board-id' title='<?php echo $lang->bug->id; ?> '><?php echo $bug->id; ?> </span> <span class='bug-pri pri-<?php echo $bug->pri;
#!/usr/bin/env php <?php <<<TC title: testing the setMenu() method. TC; include '../../../test/init.php'; include '../model.php'; $app->user = new stdclass(); $app->user->account = 'test'; $bug = new bugModel(); $bug->setMenu(array(1, 2, 3), 1); print_r($lang->bug->menu->product);