Skip to content

Instantly share code, notes, and snippets.

@yexingzhe
Last active December 16, 2015 05:38
Show Gist options
  • Save yexingzhe/5385441 to your computer and use it in GitHub Desktop.
Save yexingzhe/5385441 to your computer and use it in GitHub Desktop.
Yii Api Index Tree Array Yii Api 手册索引树数组
<?php
function API_URL($str){
return '<a href="'.$str.'.html">'.$str.'</a>';
}
$system_children = array(
array('text'=>API_URL('Yii'),),
array('text'=>API_URL('YiiBase'),),
);
$base_children = array(
array('text'=>API_URL('CApplication'),),
array('text'=>API_URL('CApplicationComponent'),),
array('text'=>API_URL('CBehavior'),),
array('text'=>API_URL('CComponent'),),
array('text'=>API_URL('CEnumerable'),),
array('text'=>API_URL('CErrorEvent'),),
array('text'=>API_URL('CErrorHandler'),),
array('text'=>API_URL('CEvent'),),
array('text'=>API_URL('CException'),),
array('text'=>API_URL('CExceptionEvent'),),
array('text'=>API_URL('CHttpException'),),
array('text'=>API_URL('CModel'),),
array('text'=>API_URL('CModelBehavior'),),
array('text'=>API_URL('CModelEvent'),),
array('text'=>API_URL('CModule'),),
array('text'=>API_URL('CSecurityManager'),),
array('text'=>API_URL('CStatePersister'),),
array('text'=>API_URL('IAction'),),
array('text'=>API_URL('IApplicationComponent'),),
array('text'=>API_URL('IAuthManager'),),
array('text'=>API_URL('IBehavior'),),
array('text'=>API_URL('IFilter'),),
array('text'=>API_URL('IStatePersister'),),
array('text'=>API_URL('IUserIdentity'),),
array('text'=>API_URL('IViewRenderer'),),
array('text'=>API_URL('IWebServiceProvider'),),
array('text'=>API_URL('IWebUser'),),
);
$caching_children = array(
array('text'=>API_URL('CApcCache'),),
array('text'=>API_URL('CCache'),),
array('text'=>API_URL('CDbCache'),),
array('text'=>API_URL('CDummyCache'),),
array('text'=>API_URL('CEAcceleratorCache'),),
array('text'=>API_URL('CFileCache'),),
array('text'=>API_URL('CMemCache'),),
array('text'=>API_URL('CMemCacheServerConfiguration'),),
array('text'=>API_URL('CWinCache'),),
array('text'=>API_URL('CXCache'),),
array('text'=>API_URL('CZendDataCache'),),
array('text'=>API_URL('ICache'),),
array('text'=>API_URL('ICacheDependency'),),
);
$caching_dependencies_children = array(
array('text'=>API_URL('CCacheDependency'),),
array('text'=>API_URL('CChainedCacheDependency'),),
array('text'=>API_URL('CDbCacheDependency'),),
array('text'=>API_URL('CDirectoryCacheDependency'),),
array('text'=>API_URL('CExpressionDependency'),),
array('text'=>API_URL('CFileCacheDependency'),),
array('text'=>API_URL('CGlobalStateCacheDependency'),),
);
$collections_children = array(
array('text'=>API_URL('CAttributeCollection'),),
array('text'=>API_URL('CConfiguration'),),
array('text'=>API_URL('CList'),),
array('text'=>API_URL('CListIterator'),),
array('text'=>API_URL('CMap'),),
array('text'=>API_URL('CMapIterator'),),
array('text'=>API_URL('CQueue'),),
array('text'=>API_URL('CQueueIterator'),),
array('text'=>API_URL('CStack'),),
array('text'=>API_URL('CStackIterator'),),
array('text'=>API_URL('CTypedList'),),
array('text'=>API_URL('CTypedMap'),),
);
$console_children = array(
array('text'=>API_URL('CConsoleApplication'),),
array('text'=>API_URL('CConsoleCommand'),),
array('text'=>API_URL('CConsoleCommandRunner'),),
array('text'=>API_URL('CHelpCommand'),),
);
$db_children = array(
array('text'=>API_URL('CDbCommand'),),
array('text'=>API_URL('CDbConnection'),),
array('text'=>API_URL('CDbDataReader'),),
array('text'=>API_URL('CDbException'),),
array('text'=>API_URL('CDbMigration'),),
array('text'=>API_URL('CDbTransaction'),),
);
$db_ar_children = array(
array('text'=>API_URL('CActiveFinder'),),
array('text'=>API_URL('CActiveRecord'),),
array('text'=>API_URL('CActiveRecordBehavior'),),
array('text'=>API_URL('CActiveRecordMetaData'),),
array('text'=>API_URL('CActiveRelation'),),
array('text'=>API_URL('CBaseActiveRelation'),),
array('text'=>API_URL('CBelongsToRelation'),),
array('text'=>API_URL('CHasManyRelation'),),
array('text'=>API_URL('CHasOneRelation'),),
array('text'=>API_URL('CJoinElement'),),
array('text'=>API_URL('CJoinQuery'),),
array('text'=>API_URL('CManyManyRelation'),),
array('text'=>API_URL('CStatElement'),),
array('text'=>API_URL('CStatRelation'),),
);
$db_schema_children = array(
array('text'=>API_URL('CDbColumnSchema'),),
array('text'=>API_URL('CDbCommandBuilder'),),
array('text'=>API_URL('CDbCriteria'),),
array('text'=>API_URL('CDbExpression'),),
array('text'=>API_URL('CDbSchema'),),
array('text'=>API_URL('CDbTableSchema'),),
);
$db_schema_mssql_children = array(
array('text'=>API_URL('CMssqlColumnSchema'),),
array('text'=>API_URL('CMssqlCommandBuilder'),),
array('text'=>API_URL('CMssqlPdoAdapter'),),
array('text'=>API_URL('CMssqlSchema'),),
array('text'=>API_URL('CMssqlTableSchema'),),
);
$db_schema_mysql_children = array(
array('text'=>API_URL('CMysqlColumnSchema'),),
array('text'=>API_URL('CMysqlSchema'),),
array('text'=>API_URL('CMysqlTableSchema'),),
);
$db_schema_oci_children = array(
array('text'=>API_URL('COciColumnSchema'),),
array('text'=>API_URL('COciCommandBuilder'),),
array('text'=>API_URL('COciSchema'),),
array('text'=>API_URL('COciTableSchema'),),
);
$db_schema_pgsql_children = array(
array('text'=>API_URL('CPgsqlColumnSchema'),),
array('text'=>API_URL('CPgsqlSchema'),),
array('text'=>API_URL('CPgsqlTableSchema'),),
);
$db_schema_sqlite_children = array(
array('text'=>API_URL('CSqliteColumnSchema'),),
array('text'=>API_URL('CSqliteCommandBuilder'),),
array('text'=>API_URL('CSqliteSchema'),),
);
$gii_children = array(
array('text'=>API_URL('CCodeFile'),),
array('text'=>API_URL('CCodeForm'),),
array('text'=>API_URL('CCodeGenerator'),),
array('text'=>API_URL('CCodeModel'),),
array('text'=>API_URL('GiiModule'),),
);
$i18n_children = array(
array('text'=>API_URL('CChoiceFormat'),),
array('text'=>API_URL('CDateFormatter'),),
array('text'=>API_URL('CDbMessageSource'),),
array('text'=>API_URL('CGettextMessageSource'),),
array('text'=>API_URL('CLocale'),),
array('text'=>API_URL('CMessageSource'),),
array('text'=>API_URL('CMissingTranslationEvent'),),
array('text'=>API_URL('CNumberFormatter'),),
array('text'=>API_URL('CPhpMessageSource'),),
);
$i18n_gettext_children = array(
array('text'=>API_URL('CGettextFile'),),
array('text'=>API_URL('CGettextMoFile'),),
array('text'=>API_URL('CGettextPoFile'),),
);
$logging_children = array(
array('text'=>API_URL('CDbLogRoute'),),
array('text'=>API_URL('CEmailLogRoute'),),
array('text'=>API_URL('CFileLogRoute'),),
array('text'=>API_URL('CLogFilter'),),
array('text'=>API_URL('CLogRoute'),),
array('text'=>API_URL('CLogRouter'),),
array('text'=>API_URL('CLogger'),),
array('text'=>API_URL('CProfileLogRoute'),),
array('text'=>API_URL('CWebLogRoute'),),
);
$test_children = array(
array('text'=>API_URL('CDbFixtureManager'),),
array('text'=>API_URL('CDbTestCase'),),
array('text'=>API_URL('CTestCase'),),
array('text'=>API_URL('CWebTestCase'),),
);
$utils_children = array(
array('text'=>API_URL('CDateTimeParser'),),
array('text'=>API_URL('CFileHelper'),),
array('text'=>API_URL('CFormatter'),),
array('text'=>API_URL('CMarkdownParser'),),
array('text'=>API_URL('CPropertyValue'),),
array('text'=>API_URL('CTimestamp'),),
array('text'=>API_URL('CVarDumper'),),
);
$validators_children = array(
array('text'=>API_URL('CBooleanValidator'),),
array('text'=>API_URL('CCaptchaValidator'),),
array('text'=>API_URL('CCompareValidator'),),
array('text'=>API_URL('CDateValidator'),),
array('text'=>API_URL('CDefaultValueValidator'),),
array('text'=>API_URL('CEmailValidator'),),
array('text'=>API_URL('CExistValidator'),),
array('text'=>API_URL('CFileValidator'),),
array('text'=>API_URL('CFilterValidator'),),
array('text'=>API_URL('CInlineValidator'),),
array('text'=>API_URL('CNumberValidator'),),
array('text'=>API_URL('CRangeValidator'),),
array('text'=>API_URL('CRegularExpressionValidator'),),
array('text'=>API_URL('CRequiredValidator'),),
array('text'=>API_URL('CSafeValidator'),),
array('text'=>API_URL('CStringValidator'),),
array('text'=>API_URL('CTypeValidator'),),
array('text'=>API_URL('CUniqueValidator'),),
array('text'=>API_URL('CUnsafeValidator'),),
array('text'=>API_URL('CUrlValidator'),),
array('text'=>API_URL('CValidator'),),
);
$web_children = array(
array('text'=>API_URL('CActiveDataProvider'),),
array('text'=>API_URL('CArrayDataProvider'),),
array('text'=>API_URL('CAssetManager'),),
array('text'=>API_URL('CBaseController'),),
array('text'=>API_URL('CBaseUrlRule'),),
array('text'=>API_URL('CCacheHttpSession'),),
array('text'=>API_URL('CClientScript'),),
array('text'=>API_URL('CController'),),
array('text'=>API_URL('CCookieCollection'),),
array('text'=>API_URL('CDataProvider'),),
array('text'=>API_URL('CDbHttpSession'),),
array('text'=>API_URL('CExtController'),),
array('text'=>API_URL('CFormModel'),),
array('text'=>API_URL('CHttpCookie'),),
array('text'=>API_URL('CHttpRequest'),),
array('text'=>API_URL('CHttpSession'),),
array('text'=>API_URL('CHttpSessionIterator'),),
array('text'=>API_URL('COutputEvent'),),
array('text'=>API_URL('CPagination'),),
array('text'=>API_URL('CSort'),),
array('text'=>API_URL('CSqlDataProvider'),),
array('text'=>API_URL('CTheme'),),
array('text'=>API_URL('CThemeManager'),),
array('text'=>API_URL('CUploadedFile'),),
array('text'=>API_URL('CUrlManager'),),
array('text'=>API_URL('CUrlRule'),),
array('text'=>API_URL('CWebApplication'),),
array('text'=>API_URL('CWebModule'),),
array('text'=>API_URL('CWidgetFactory'),),
array('text'=>API_URL('IDataProvider'),),
array('text'=>API_URL('IWidgetFactory'),),
);
$web_actions_children = array(
array('text'=>API_URL('CAction'),),
array('text'=>API_URL('CInlineAction'),),
array('text'=>API_URL('CViewAction'),),
);
$web_auth_children = array(
array('text'=>API_URL('CAccessControlFilter'),),
array('text'=>API_URL('CAccessRule'),),
array('text'=>API_URL('CAuthAssignment'),),
array('text'=>API_URL('CAuthItem'),),
array('text'=>API_URL('CAuthManager'),),
array('text'=>API_URL('CBaseUserIdentity'),),
array('text'=>API_URL('CDbAuthManager'),),
array('text'=>API_URL('CPhpAuthManager'),),
array('text'=>API_URL('CUserIdentity'),),
array('text'=>API_URL('CWebUser'),),
);
$web_filters_children = array(
array('text'=>API_URL('CFilter'),),
array('text'=>API_URL('CFilterChain'),),
array('text'=>API_URL('CInlineFilter'),),
);
$web_form_children = array(
array('text'=>API_URL('CForm'),),
array('text'=>API_URL('CFormButtonElement'),),
array('text'=>API_URL('CFormElement'),),
array('text'=>API_URL('CFormElementCollection'),),
array('text'=>API_URL('CFormInputElement'),),
array('text'=>API_URL('CFormStringElement'),),
);
$web_helpers_children = array(
array('text'=>API_URL('CGoogleApi'),),
array('text'=>API_URL('CHtml'),),
array('text'=>API_URL('CJSON'),),
array('text'=>API_URL('CJavaScript'),),
);
$web_renderers_children = array(
array('text'=>API_URL('CPradoViewRenderer'),),
array('text'=>API_URL('CViewRenderer'),),
);
$web_services_children = array(
array('text'=>API_URL('CSoapObjectWrapper'),),
array('text'=>API_URL('CWebService'),),
array('text'=>API_URL('CWebServiceAction'),),
array('text'=>API_URL('CWsdlGenerator'),),
);
$web_widgets_children = array(
array('text'=>API_URL('CActiveForm'),),
array('text'=>API_URL('CAutoComplete'),),
array('text'=>API_URL('CClipWidget'),),
array('text'=>API_URL('CContentDecorator'),),
array('text'=>API_URL('CFilterWidget'),),
array('text'=>API_URL('CFlexWidget'),),
array('text'=>API_URL('CHtmlPurifier'),),
array('text'=>API_URL('CInputWidget'),),
array('text'=>API_URL('CMarkdown'),),
array('text'=>API_URL('CMaskedTextField'),),
array('text'=>API_URL('CMultiFileUpload'),),
array('text'=>API_URL('COutputCache'),),
array('text'=>API_URL('COutputProcessor'),),
array('text'=>API_URL('CStarRating'),),
array('text'=>API_URL('CTabView'),),
array('text'=>API_URL('CTextHighlighter'),),
array('text'=>API_URL('CTreeView'),),
array('text'=>API_URL('CWidget'),),
);
$web_widgets_captcha_children = array(
array('text'=>API_URL('CCaptcha'),),
array('text'=>API_URL('CCaptchaAction'),),
);
$web_widgets_pagers_children = array(
array('text'=>API_URL('CBasePager'),),
array('text'=>API_URL('CLinkPager'),),
array('text'=>API_URL('CListPager'),),
);
$zii_behaviors_children = array(
array('text'=>API_URL('CTimestampBehavior'),),
);
$zii_widgets_children = array(
array('text'=>API_URL('CBaseListView'),),
array('text'=>API_URL('CBreadcrumbs'),),
array('text'=>API_URL('CDetailView'),),
array('text'=>API_URL('CListView'),),
array('text'=>API_URL('CMenu'),),
array('text'=>API_URL('CPortlet'),),
);
$zii_widgets_grid_children = array(
array('text'=>API_URL('CButtonColumn'),),
array('text'=>API_URL('CCheckBoxColumn'),),
array('text'=>API_URL('CDataColumn'),),
array('text'=>API_URL('CGridColumn'),),
array('text'=>API_URL('CGridView'),),
array('text'=>API_URL('CLinkColumn'),),
);
$zii_widgets_jui_children = array(
array('text'=>API_URL('CJuiAccordion'),),
array('text'=>API_URL('CJuiAutoComplete'),),
array('text'=>API_URL('CJuiButton'),),
array('text'=>API_URL('CJuiDatePicker'),),
array('text'=>API_URL('CJuiDialog'),),
array('text'=>API_URL('CJuiDraggable'),),
array('text'=>API_URL('CJuiDroppable'),),
array('text'=>API_URL('CJuiInputWidget'),),
array('text'=>API_URL('CJuiProgressBar'),),
array('text'=>API_URL('CJuiResizable'),),
array('text'=>API_URL('CJuiSelectable'),),
array('text'=>API_URL('CJuiSlider'),),
array('text'=>API_URL('CJuiSliderInput'),),
array('text'=>API_URL('CJuiSortable'),),
array('text'=>API_URL('CJuiTabs'),),
array('text'=>API_URL('CJuiWidget'),),
);
$data = array(
array(
'text'=>'system',
'children'=>$system_children
),
array(
'text'=>'system.base',
'children'=>$base_children
),
array(
'text'=>'system.caching',
'children'=>$caching_children
),
array(
'text'=>'system.caching.dependencies',
'children'=>$caching_dependencies_children
),
array(
'text'=>'system.collections',
'children'=>$collections_children
),
array(
'text'=>'system.console',
'children'=>$console_children
),
array(
'text'=>'system.db',
'children'=>$db_children
),
array(
'text'=>'system.db.ar',
'children'=>$db_ar_children
),
array(
'text'=>'system.db.schema',
'children'=>$db_schema_children
),
array(
'text'=>'system.db.schema.mssql',
'children'=>$db_schema_mssql_children
),
array(
'text'=>'system.db.schema.mysql',
'children'=>$db_schema_mysql_children
),
array(
'text'=>'system.db.schema.oci',
'children'=>$db_schema_oci_children
),
array(
'text'=>'system.db.schema.pgsql',
'children'=>$db_schema_pgsql_children
),
array(
'text'=>'system.db.schema.sqlite',
'children'=>$db_schema_sqlite_children
),
array(
'text'=>'system.gii',
'children'=>$gii_children
),
array(
'text'=>'system.i18n',
'children'=>$i18n_children
),
array(
'text'=>'system.i18n.gettext',
'children'=>$i18n_gettext_children
),
array(
'text'=>'system.logging',
'children'=>$logging_children
),
array(
'text'=>'system.test',
'children'=>$test_children
),
array(
'text'=>'system.utils',
'children'=>$utils_children
),
array(
'text'=>'system.validators',
'children'=>$validators_children
),
array(
'text'=>'system.web',
'children'=>$web_children
),
array(
'text'=>'system.web.actions',
'children'=>$web_actions_children
),
array(
'text'=>'system.web.auth',
'children'=>$web_auth_children
),
array(
'text'=>'system.web.filters',
'children'=>$web_filters_children
),
array(
'text'=>'system.web.form',
'children'=>$web_form_children
),
array(
'text'=>'system.web.helpers',
'children'=>$web_helpers_children
),
array(
'text'=>'system.web.renderers',
'children'=>$web_renderers_children
),
array(
'text'=>'system.web.services',
'children'=>$web_services_children
),
array(
'text'=>'system.web.widgets',
'children'=>$web_widgets_children
),
array(
'text'=>'system.web.widgets.captcha',
'children'=>$web_widgets_captcha_children
),
array(
'text'=>'system.web.widgets.pagers',
'children'=>$web_widgets_pagers_children
),
array(
'text'=>'zii.behaviors',
'children'=>$zii_behaviors_children
),
array(
'text'=>'zii.widgets',
'children'=>$zii_widgets_children
),
array(
'text'=>'zii.widgets.grid',
'children'=>$zii_widgets_grid_children
),
array(
'text'=>'zii.widgets.jui',
'children'=>$zii_widgets_jui_children
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment