当前位置: 首页>>代码示例>>PHP>>正文


PHP BackendUserAuthentication::veriCode方法代码示例

本文整理汇总了PHP中TYPO3\CMS\Core\Authentication\BackendUserAuthentication::veriCode方法的典型用法代码示例。如果您正苦于以下问题:PHP BackendUserAuthentication::veriCode方法的具体用法?PHP BackendUserAuthentication::veriCode怎么用?PHP BackendUserAuthentication::veriCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TYPO3\CMS\Core\Authentication\BackendUserAuthentication的用法示例。


在下文中一共展示了BackendUserAuthentication::veriCode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: reference

 /**
  * Adding CM element for Delete
  *
  * @param	string	$table	Table name
  * @param	integer	$uid	UID for the current record.
  * @param	array	$elInfo	Label for including in the confirmation message, EXT:lang/locallang_core.php:mess.delete
  * @return	array		Item array, element in $menuItems
  * @internal
  */
 function DB_delete($table, $uid, $elInfo)
 {
     $loc = 'top.content.list_frame';
     if ($this->beUser->jsConfirmation(4)) {
         $conf = "confirm(" . GeneralUtility::quoteJSvalue(sprintf($this->LANG->sL('LLL:EXT:lang/locallang_core.php:mess.delete'), $elInfo[0]) . BackendUtility::referenceCount($table, $uid, ' (There are %s reference(s) to this record!)')) . ")";
     } else {
         $conf = '1==1';
     }
     $editOnClick = 'if(' . $loc . " && " . $conf . " ){" . $loc . ".location.href=top.TS.PATH_typo3+'tce_db.php?redirect='+top.rawurlencode(" . $this->backRef->frameLocation($loc . '.document') . ")+'" . "&cmd[" . $table . '][' . $uid . '][DDdelete]=1&prErr=1&vC=' . $this->beUser->veriCode() . BackendUtility::getUrlToken('tceAction') . "';hideCM();}";
     return $this->backRef->linkItem($this->LANG->getLLL('delete', $this->LL), $this->backRef->excludeIcon(IconUtility::getSpriteIcon('actions-edit-delete')), $editOnClick . 'return false;');
 }
开发者ID:mrmoree,项目名称:vkmh_typo3,代码行数:20,代码来源:class.tx_ttnewscatmanager_cm1.php

示例2: dragDrop_copymovefolder

 /**
  * Adding CM element for Copying/Moving a Folder Into from a drag & drop action
  *
  * @param string $srcPath source path for the record to modify
  * @param string $dstPath destination path for the records to modify
  * @param string $action Action code: either "move" or "copy
  * @return array Item array, element in $menuItems
  * @internal
  */
 public function dragDrop_copymovefolder($srcPath, $dstPath, $action)
 {
     $loc = 'top.content.list_frame';
     $editOnClick = 'if(' . $loc . '){' . $loc . '.document.location=' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('tce_file') . '&redirect=') . '+top.rawurlencode(' . $this->frameLocation($loc . '.document') . '.pathname+' . $this->frameLocation($loc . '.document') . '.search)+' . GeneralUtility::quoteJSvalue('&file[' . $action . '][0][data]=' . $srcPath . '&file[' . $action . '][0][target]=' . $dstPath . '&prErr=1&vC=' . $this->backendUser->veriCode()) . ';};top.nav.refresh();';
     return $this->linkItem($this->label($action . 'Folder_into'), $this->iconFactory->getIcon('apps-pagetree-drag-move-into', Icon::SIZE_SMALL)->render(), $editOnClick . 'return false;');
 }
开发者ID:vip3out,项目名称:TYPO3.CMS,代码行数:15,代码来源:ClickMenu.php


注:本文中的TYPO3\CMS\Core\Authentication\BackendUserAuthentication::veriCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。