本文整理匯總了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