本文整理汇总了PHP中prado::setPathOfAlias方法的典型用法代码示例。如果您正苦于以下问题:PHP prado::setPathOfAlias方法的具体用法?PHP prado::setPathOfAlias怎么用?PHP prado::setPathOfAlias使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类prado
的用法示例。
在下文中一共展示了prado::setPathOfAlias方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
<?php
/*
* CContextMenu class file
*
* @author Christophe Boulain <Christophe.Boulain@gmail.com>
* @license http://www.pradosoft.com/license
* @version $Id: CContextMenu.php 126 2009-03-11 07:24:26Z tof $
*/
if (!prado::getPathOfAlias('CContextMenu')) {
prado::setPathOfAlias('CContextMenu', dirname(__FILE__));
}
/**
* CContextMenu class
*
* This class is a Prado wrapper to 'Proto.Menu' written by 'kangax'
*
* Properties :
* o ForControl : Id of control on which attach the contextual menu.
* o CssSelector: a css selector to find the controls to attach the menu (e.g. CssSelector=".className").
* o CssUrl : an url to an alternate css file. By default, the proto.menu.0.6.css will be used
* o CssClass : Css class of the menu (default to "menu desktop". See proto.menu.css for info)
* o Items : a collection of CContextMenuItem.
*
* If theses two properties are present, ForControl takes precedence.
*
* Events :
* o OnMenuItemSelected event is raised when a menu item is clicked. The event parameter contains the index of the clicked element, and its command name.
*
* Items Properties :
* o Text : Text of menu item