本文整理汇总了PHP中Languages::getActionOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP Languages::getActionOptions方法的具体用法?PHP Languages::getActionOptions怎么用?PHP Languages::getActionOptions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Languages
的用法示例。
在下文中一共展示了Languages::getActionOptions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showForm
public function showForm($user_id = -1)
{
include_once "Casting.php";
include_once "Client.php";
include_once "Supplier.php";
include_once "Product.php";
include_once "Task.php";
include_once "User.php";
include_once "Eyecolor.php";
include_once "Job.php";
include_once "Haircolor.php";
include_once "Profiletype.php";
include_once "Skincolor.php";
include_once "Relationship.php";
include_once "Languages.php";
include_once "Nationality.php";
$this->prepareForm(-1, array('method' => 'post', 'includeTabs' => false, 'action' => base_url() . 'permissoes/aplicar/' . $user_id));
$user = new User($user_id);
if ($user->fields['administrador']) {
AlertMessage::display(array("type" => AlertMessage::INFO, "msg" => "O usuário <b>" . $user->fields['usuario'] . "</b> é administrador, possui sempre permissão em tudo", "icon" => "ls-ico-info"));
}
echo "<ul id='tree_view_permissions' class='navmenu dree treeview treeviewPermissions'>";
echo '<a name="topMenuTerrace" id="topMenuTerrace"></a>';
echo '<li>Casting';
echo "<ul>";
$casting = new Casting();
$casting->defineActionOptions();
$actions = $casting->getActionOptions();
$perm_name = $actions["add"]["permName"];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $actions["add"]["label"] . "</li>";
$perm_name = $actions["edit"]["permName"];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $actions["edit"]["label"] . "</li>";
foreach ($actions["actions"] as $index => $action) {
$perm_name = $action['permName'];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $action["label"] . "</li>";
}
echo "<li>Perfil";
echo "<ul>";
$profile_type = new Profiletype();
$profile_type->defineActionOptions();
$actions = $profile_type->getActionOptions();
$perm_name = $actions["add"]["permName"];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $actions["add"]["label"] . "</li>";
foreach ($actions["actions"] as $index => $action) {
$perm_name = $action['permName'];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $action["label"] . "</li>";
}
echo "</ul>";
echo "</li>";
echo "<li>Cores de cabelo";
echo "<ul>";
$casting_hair = new Haircolor();
$casting_hair->defineActionOptions();
$actions = $casting_hair->getActionOptions();
$perm_name = $actions["add"]["permName"];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $actions["add"]["label"] . "</li>";
foreach ($actions["actions"] as $index => $action) {
$perm_name = $action['permName'];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $action["label"] . "</li>";
}
echo "</ul>";
echo "</li>";
echo "<li>Cores de olhos";
echo "<ul>";
$casting_eye = new Eyecolor();
$casting_eye->defineActionOptions();
$actions = $casting_eye->getActionOptions();
$perm_name = $actions["add"]["permName"];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $actions["add"]["label"] . "</li>";
foreach ($actions["actions"] as $index => $action) {
$perm_name = $action['permName'];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $action["label"] . "</li>";
}
echo "</ul>";
echo "</li>";
echo "<li>Etnias";
echo "<ul>";
$etnias = new Skincolor();
$etnias->defineActionOptions();
$actions = $etnias->getActionOptions();
$perm_name = $actions["add"]["permName"];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $actions["add"]["label"] . "</li>";
foreach ($actions["actions"] as $index => $action) {
$perm_name = $action['permName'];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $action["label"] . "</li>";
}
echo "</ul>";
echo "</li>";
echo "<li>Nacionalidades";
echo "<ul>";
$nationality = new Nationality();
$nationality->defineActionOptions();
$actions = $nationality->getActionOptions();
$perm_name = $actions["add"]["permName"];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $actions["add"]["label"] . "</li>";
foreach ($actions["actions"] as $index => $action) {
$perm_name = $action['permName'];
echo "<li data-havepermission='" . self::havePermission($perm_name, $user_id) . "' data-permname='" . $perm_name . "'>" . $action["label"] . "</li>";
}
echo "</ul>";
//.........这里部分代码省略.........