本文整理汇总了PHP中Cabinet::unpinFolder方法的典型用法代码示例。如果您正苦于以下问题:PHP Cabinet::unpinFolder方法的具体用法?PHP Cabinet::unpinFolder怎么用?PHP Cabinet::unpinFolder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cabinet
的用法示例。
在下文中一共展示了Cabinet::unpinFolder方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: admin
/**
* Handles admin functions outside of file manager.
* Expects an 'aop' command.
*/
public function admin()
{
$javascript = false;
// if true, sends to nakedDisplay
$this->loadPanel();
if (isset($_REQUEST['aop'])) {
$aop = $_REQUEST['aop'];
} else {
$aop = $this->panel->getCurrentTab();
}
if (!Current_User::isLogged()) {
Current_User::disallow();
return;
}
if ($aop != 'edit_image' && $aop != 'get_images' && !Current_User::allow('filecabinet')) {
Current_User::disallow();
return;
}
// Requires an unrestricted user
switch ($aop) {
case 'delete_folder':
case 'unpin':
if (Current_User::isRestricted('filecabinet')) {
Current_User::disallow();
}
}
switch ($aop) {
case 'image':
$this->panel->setCurrentTab('image');
$this->title = dgettext('filecabinet', 'Image folders');
$this->loadForms();
$this->forms->getFolders(IMAGE_FOLDER);
break;
case 'multimedia':
$this->panel->setCurrentTab('multimedia');
$this->title = dgettext('filecabinet', 'Multimedia folders');
$this->loadForms();
$this->forms->getFolders(MULTIMEDIA_FOLDER);
break;
case 'add_folder':
if (!Current_User::allow('filecabinet', 'edit_folders', null, null, true)) {
Current_User::disallow();
}
$javascript = true;
$this->loadFolder();
$this->addFolder();
break;
case 'classify':
if (!Current_User::isDeity()) {
Current_User::errorPage();
}
$this->loadForms();
$this->forms->classifyFileList();
break;
case 'classify_action':
if (!Current_User::isDeity() || !Current_User::verifyAuthKey()) {
Current_User::errorPage();
}
$this->classifyAction();
break;
case 'classify_file':
if (!Current_User::isDeity() || !Current_User::verifyAuthKey()) {
Current_User::disallow();
}
$this->loadForms();
if (!empty($_POST['file_list'])) {
$this->forms->classifyFile($_POST['file_list']);
} elseif (isset($_GET['file'])) {
$this->forms->classifyFile($_GET['file']);
} else {
$this->forms->classifyFileList();
}
break;
case 'post_classifications':
if (!Current_User::isDeity()) {
Current_User::errorPage();
}
$result = $this->classifyFiles();
if (is_array($result)) {
$this->message = implode('<br />', $result);
}
$this->loadForms();
$this->forms->classifyFileList();
break;
case 'unpin':
if (!Current_User::authorized('filecabinet')) {
Current_User::disallow();
}
Cabinet::unpinFolder();
PHPWS_Core::goBack();
break;
case 'pin_form':
$javascript = true;
@($key_id = (int) $_GET['key_id']);
if (!$key_id) {
javascript('close_refresh', array('refresh' => 0));
//.........这里部分代码省略.........