1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
12:
13: 14: 15:
16: defined('YII_BEGIN_TIME') or define('YII_BEGIN_TIME',microtime(true));
17: 18: 19:
20: defined('YII_DEBUG') or define('YII_DEBUG',false);
21: 22: 23: 24: 25:
26: defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',0);
27: 28: 29:
30: defined('YII_ENABLE_EXCEPTION_HANDLER') or define('YII_ENABLE_EXCEPTION_HANDLER',true);
31: 32: 33:
34: defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER',true);
35: 36: 37:
38: defined('YII_PATH') or define('YII_PATH',dirname(__FILE__));
39: 40: 41:
42: defined('YII_ZII_PATH') or define('YII_ZII_PATH',YII_PATH.DIRECTORY_SEPARATOR.'zii');
43:
44: 45: 46: 47: 48: 49: 50: 51: 52: 53:
54: class YiiBase
55: {
56: 57: 58: 59: 60:
61: public static $classMap=array();
62: 63: 64: 65: 66: 67:
68: public static $enableIncludePath=true;
69:
70: protected static $_aliases=array('system'=>YII_PATH,'zii'=>YII_ZII_PATH);
71: protected static $_imports=array();
72: protected static $_includePaths;
73: protected static $_app;
74: protected static $_logger;
75:
76:
77:
78: 79: 80:
81: public static function getVersion()
82: {
83: return '1.1.16';
84: }
85:
86: 87: 88: 89: 90: 91: 92: 93: 94: 95:
96: public static function createWebApplication($config=null)
97: {
98: return self::createApplication('CWebApplication',$config);
99: }
100:
101: 102: 103: 104: 105: 106: 107: 108: 109: 110:
111: public static function createConsoleApplication($config=null)
112: {
113: return self::createApplication('CConsoleApplication',$config);
114: }
115:
116: 117: 118: 119: 120: 121: 122:
123: public static function createApplication($class,$config=null)
124: {
125: return new $class($config);
126: }
127:
128: 129: 130: 131:
132: public static function app()
133: {
134: return self::$_app;
135: }
136:
137: 138: 139: 140: 141: 142: 143: 144: 145: 146:
147: public static function setApplication($app)
148: {
149: if(self::$_app===null || $app===null)
150: self::$_app=$app;
151: else
152: throw new CException(Yii::t('yii','Yii application can only be created once.'));
153: }
154:
155: 156: 157:
158: public static function getFrameworkPath()
159: {
160: return YII_PATH;
161: }
162:
163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179:
180: public static function createComponent($config)
181: {
182: if(is_string($config))
183: {
184: $type=$config;
185: $config=array();
186: }
187: elseif(isset($config['class']))
188: {
189: $type=$config['class'];
190: unset($config['class']);
191: }
192: else
193: throw new CException(Yii::t('yii','Object configuration must be an array containing a "class" element.'));
194:
195: if(!class_exists($type,false))
196: $type=Yii::import($type,true);
197:
198: if(($n=func_num_args())>1)
199: {
200: $args=func_get_args();
201: if($n===2)
202: $object=new $type($args[1]);
203: elseif($n===3)
204: $object=new $type($args[1],$args[2]);
205: elseif($n===4)
206: $object=new $type($args[1],$args[2],$args[3]);
207: else
208: {
209: unset($args[0]);
210: $class=new ReflectionClass($type);
211:
212:
213: $object=call_user_func_array(array($class,'newInstance'),$args);
214: }
215: }
216: else
217: $object=new $type;
218:
219: foreach($config as $key=>$value)
220: $object->$key=$value;
221:
222: return $object;
223: }
224:
225: 226: 227: 228: 229: 230: 231: 232: 233: 234: 235: 236: 237: 238: 239: 240: 241: 242: 243: 244: 245: 246: 247: 248: 249: 250: 251: 252: 253: 254: 255: 256: 257: 258: 259: 260: 261: 262:
263: public static function import($alias,$forceInclude=false)
264: {
265: if(isset(self::$_imports[$alias]))
266: return self::$_imports[$alias];
267:
268: if(class_exists($alias,false) || interface_exists($alias,false))
269: return self::$_imports[$alias]=$alias;
270:
271: if(($pos=strrpos($alias,'\\'))!==false)
272: {
273: $namespace=str_replace('\\','.',ltrim(substr($alias,0,$pos),'\\'));
274: if(($path=self::getPathOfAlias($namespace))!==false)
275: {
276: $classFile=$path.DIRECTORY_SEPARATOR.substr($alias,$pos+1).'.php';
277: if($forceInclude)
278: {
279: if(is_file($classFile))
280: require($classFile);
281: else
282: throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing PHP file and the file is readable.',array('{alias}'=>$alias)));
283: self::$_imports[$alias]=$alias;
284: }
285: else
286: self::$classMap[$alias]=$classFile;
287: return $alias;
288: }
289: else
290: {
291:
292: if (class_exists($alias,true))
293: return self::$_imports[$alias]=$alias;
294: else
295: throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing directory or file.',
296: array('{alias}'=>$namespace)));
297: }
298: }
299:
300: if(($pos=strrpos($alias,'.'))===false)
301: {
302:
303: if($forceInclude && (Yii::autoload($alias,true) || class_exists($alias,true)))
304: self::$_imports[$alias]=$alias;
305: return $alias;
306: }
307:
308: $className=(string)substr($alias,$pos+1);
309: $isClass=$className!=='*';
310:
311: if($isClass && (class_exists($className,false) || interface_exists($className,false)))
312: return self::$_imports[$alias]=$className;
313:
314: if(($path=self::getPathOfAlias($alias))!==false)
315: {
316: if($isClass)
317: {
318: if($forceInclude)
319: {
320: if(is_file($path.'.php'))
321: require($path.'.php');
322: else
323: throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing PHP file and the file is readable.',array('{alias}'=>$alias)));
324: self::$_imports[$alias]=$className;
325: }
326: else
327: self::$classMap[$className]=$path.'.php';
328: return $className;
329: }
330: else
331: {
332: if(self::$_includePaths===null)
333: {
334: self::$_includePaths=array_unique(explode(PATH_SEPARATOR,get_include_path()));
335: if(($pos=array_search('.',self::$_includePaths,true))!==false)
336: unset(self::$_includePaths[$pos]);
337: }
338:
339: array_unshift(self::$_includePaths,$path);
340:
341: if(self::$enableIncludePath && set_include_path('.'.PATH_SEPARATOR.implode(PATH_SEPARATOR,self::$_includePaths))===false)
342: self::$enableIncludePath=false;
343:
344: return self::$_imports[$alias]=$path;
345: }
346: }
347: else
348: throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing directory or file.',
349: array('{alias}'=>$alias)));
350: }
351:
352: 353: 354: 355: 356: 357: 358:
359: public static function getPathOfAlias($alias)
360: {
361: if(isset(self::$_aliases[$alias]))
362: return self::$_aliases[$alias];
363: elseif(($pos=strpos($alias,'.'))!==false)
364: {
365: $rootAlias=substr($alias,0,$pos);
366: if(isset(self::$_aliases[$rootAlias]))
367: return self::$_aliases[$alias]=rtrim(self::$_aliases[$rootAlias].DIRECTORY_SEPARATOR.str_replace('.',DIRECTORY_SEPARATOR,substr($alias,$pos+1)),'*'.DIRECTORY_SEPARATOR);
368: elseif(self::$_app instanceof CWebApplication)
369: {
370: if(self::$_app->findModule($rootAlias)!==null)
371: return self::getPathOfAlias($alias);
372: }
373: }
374: return false;
375: }
376:
377: 378: 379: 380: 381: 382: 383:
384: public static function setPathOfAlias($alias,$path)
385: {
386: if(empty($path))
387: unset(self::$_aliases[$alias]);
388: else
389: self::$_aliases[$alias]=rtrim($path,'\\/');
390: }
391:
392: 393: 394: 395: 396: 397: 398: 399:
400: public static function autoload($className,$classMapOnly=false)
401: {
402:
403: if(isset(self::$classMap[$className]))
404: include(self::$classMap[$className]);
405: elseif(isset(self::$_coreClasses[$className]))
406: include(YII_PATH.self::$_coreClasses[$className]);
407: elseif($classMapOnly)
408: return false;
409: else
410: {
411:
412: if(strpos($className,'\\')===false)
413: {
414: if(self::$enableIncludePath===false)
415: {
416: foreach(self::$_includePaths as $path)
417: {
418: $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';
419: if(is_file($classFile))
420: {
421: include($classFile);
422: if(YII_DEBUG && basename(realpath($classFile))!==$className.'.php')
423: throw new CException(Yii::t('yii','Class name "{class}" does not match class file "{file}".', array(
424: '{class}'=>$className,
425: '{file}'=>$classFile,
426: )));
427: break;
428: }
429: }
430: }
431: else
432: include($className.'.php');
433: }
434: else
435: {
436: $namespace=str_replace('\\','.',ltrim($className,'\\'));
437: if(($path=self::getPathOfAlias($namespace))!==false)
438: include($path.'.php');
439: else
440: return false;
441: }
442: return class_exists($className,false) || interface_exists($className,false);
443: }
444: return true;
445: }
446:
447: 448: 449: 450: 451: 452: 453:
454: public static function trace($msg,$category='application')
455: {
456: if(YII_DEBUG)
457: self::log($msg,CLogger::LEVEL_TRACE,$category);
458: }
459:
460: 461: 462: 463: 464: 465: 466: 467: 468:
469: public static function log($msg,$level=CLogger::LEVEL_INFO,$category='application')
470: {
471: if(self::$_logger===null)
472: self::$_logger=new CLogger;
473: if(YII_DEBUG && YII_TRACE_LEVEL>0 && $level!==CLogger::LEVEL_PROFILE)
474: {
475: $traces=debug_backtrace();
476: $count=0;
477: foreach($traces as $trace)
478: {
479: if(isset($trace['file'],$trace['line']) && strpos($trace['file'],YII_PATH)!==0)
480: {
481: $msg.="\nin ".$trace['file'].' ('.$trace['line'].')';
482: if(++$count>=YII_TRACE_LEVEL)
483: break;
484: }
485: }
486: }
487: self::$_logger->log($msg,$level,$category);
488: }
489:
490: 491: 492: 493: 494: 495: 496: 497: 498: 499: 500: 501: 502: 503: 504: 505: 506: 507: 508: 509: 510:
511: public static function beginProfile($token,$category='application')
512: {
513: self::log('begin:'.$token,CLogger::LEVEL_PROFILE,$category);
514: }
515:
516: 517: 518: 519: 520: 521: 522:
523: public static function endProfile($token,$category='application')
524: {
525: self::log('end:'.$token,CLogger::LEVEL_PROFILE,$category);
526: }
527:
528: 529: 530:
531: public static function getLogger()
532: {
533: if(self::$_logger!==null)
534: return self::$_logger;
535: else
536: return self::$_logger=new CLogger;
537: }
538:
539: 540: 541: 542: 543:
544: public static function setLogger($logger)
545: {
546: self::$_logger=$logger;
547: }
548:
549: 550: 551: 552:
553: public static function powered()
554: {
555: return Yii::t('yii','Powered by {yii}.', array('{yii}'=>'<a href="http://www.yiiframework.com/" rel="external">Yii Framework</a>'));
556: }
557:
558: 559: 560: 561: 562: 563: 564: 565: 566: 567: 568: 569: 570: 571: 572: 573: 574: 575: 576: 577: 578: 579: 580: 581:
582: public static function t($category,$message,$params=array(),$source=null,$language=null)
583: {
584: if(self::$_app!==null)
585: {
586: if($source===null)
587: $source=($category==='yii'||$category==='zii')?'coreMessages':'messages';
588: if(($source=self::$_app->getComponent($source))!==null)
589: $message=$source->translate($category,$message,$language);
590: }
591: if($params===array())
592: return $message;
593: if(!is_array($params))
594: $params=array($params);
595: if(isset($params[0]))
596: {
597: if(strpos($message,'|')!==false)
598: {
599: if(strpos($message,'#')===false)
600: {
601: $chunks=explode('|',$message);
602: $expressions=self::$_app->getLocale($language)->getPluralRules();
603: if($n=min(count($chunks),count($expressions)))
604: {
605: for($i=0;$i<$n;$i++)
606: $chunks[$i]=$expressions[$i].'#'.$chunks[$i];
607:
608: $message=implode('|',$chunks);
609: }
610: }
611: $message=CChoiceFormat::format($message,$params[0]);
612: }
613: if(!isset($params['{n}']))
614: $params['{n}']=$params[0];
615: unset($params[0]);
616: }
617: return $params!==array() ? strtr($message,$params) : $message;
618: }
619:
620: 621: 622: 623: 624: 625: 626: 627: 628: 629:
630: public static function registerAutoloader($callback, $append=false)
631: {
632: if($append)
633: {
634: self::$enableIncludePath=false;
635: spl_autoload_register($callback);
636: }
637: else
638: {
639: spl_autoload_unregister(array('YiiBase','autoload'));
640: spl_autoload_register($callback);
641: spl_autoload_register(array('YiiBase','autoload'));
642: }
643: }
644:
645: 646: 647: 648: 649:
650: protected static $_coreClasses=array(
651: 'CApplication' => '/base/CApplication.php',
652: 'CApplicationComponent' => '/base/CApplicationComponent.php',
653: 'CBehavior' => '/base/CBehavior.php',
654: 'CComponent' => '/base/CComponent.php',
655: 'CErrorEvent' => '/base/CErrorEvent.php',
656: 'CErrorHandler' => '/base/CErrorHandler.php',
657: 'CException' => '/base/CException.php',
658: 'CExceptionEvent' => '/base/CExceptionEvent.php',
659: 'CHttpException' => '/base/CHttpException.php',
660: 'CModel' => '/base/CModel.php',
661: 'CModelBehavior' => '/base/CModelBehavior.php',
662: 'CModelEvent' => '/base/CModelEvent.php',
663: 'CModule' => '/base/CModule.php',
664: 'CSecurityManager' => '/base/CSecurityManager.php',
665: 'CStatePersister' => '/base/CStatePersister.php',
666: 'CApcCache' => '/caching/CApcCache.php',
667: 'CCache' => '/caching/CCache.php',
668: 'CDbCache' => '/caching/CDbCache.php',
669: 'CDummyCache' => '/caching/CDummyCache.php',
670: 'CEAcceleratorCache' => '/caching/CEAcceleratorCache.php',
671: 'CFileCache' => '/caching/CFileCache.php',
672: 'CMemCache' => '/caching/CMemCache.php',
673: 'CRedisCache' => '/caching/CRedisCache.php',
674: 'CWinCache' => '/caching/CWinCache.php',
675: 'CXCache' => '/caching/CXCache.php',
676: 'CZendDataCache' => '/caching/CZendDataCache.php',
677: 'CCacheDependency' => '/caching/dependencies/CCacheDependency.php',
678: 'CChainedCacheDependency' => '/caching/dependencies/CChainedCacheDependency.php',
679: 'CDbCacheDependency' => '/caching/dependencies/CDbCacheDependency.php',
680: 'CDirectoryCacheDependency' => '/caching/dependencies/CDirectoryCacheDependency.php',
681: 'CExpressionDependency' => '/caching/dependencies/CExpressionDependency.php',
682: 'CFileCacheDependency' => '/caching/dependencies/CFileCacheDependency.php',
683: 'CGlobalStateCacheDependency' => '/caching/dependencies/CGlobalStateCacheDependency.php',
684: 'CAttributeCollection' => '/collections/CAttributeCollection.php',
685: 'CConfiguration' => '/collections/CConfiguration.php',
686: 'CList' => '/collections/CList.php',
687: 'CListIterator' => '/collections/CListIterator.php',
688: 'CMap' => '/collections/CMap.php',
689: 'CMapIterator' => '/collections/CMapIterator.php',
690: 'CQueue' => '/collections/CQueue.php',
691: 'CQueueIterator' => '/collections/CQueueIterator.php',
692: 'CStack' => '/collections/CStack.php',
693: 'CStackIterator' => '/collections/CStackIterator.php',
694: 'CTypedList' => '/collections/CTypedList.php',
695: 'CTypedMap' => '/collections/CTypedMap.php',
696: 'CConsoleApplication' => '/console/CConsoleApplication.php',
697: 'CConsoleCommand' => '/console/CConsoleCommand.php',
698: 'CConsoleCommandBehavior' => '/console/CConsoleCommandBehavior.php',
699: 'CConsoleCommandEvent' => '/console/CConsoleCommandEvent.php',
700: 'CConsoleCommandRunner' => '/console/CConsoleCommandRunner.php',
701: 'CHelpCommand' => '/console/CHelpCommand.php',
702: 'CDbCommand' => '/db/CDbCommand.php',
703: 'CDbConnection' => '/db/CDbConnection.php',
704: 'CDbDataReader' => '/db/CDbDataReader.php',
705: 'CDbException' => '/db/CDbException.php',
706: 'CDbMigration' => '/db/CDbMigration.php',
707: 'CDbTransaction' => '/db/CDbTransaction.php',
708: 'CActiveFinder' => '/db/ar/CActiveFinder.php',
709: 'CActiveRecord' => '/db/ar/CActiveRecord.php',
710: 'CActiveRecordBehavior' => '/db/ar/CActiveRecordBehavior.php',
711: 'CDbColumnSchema' => '/db/schema/CDbColumnSchema.php',
712: 'CDbCommandBuilder' => '/db/schema/CDbCommandBuilder.php',
713: 'CDbCriteria' => '/db/schema/CDbCriteria.php',
714: 'CDbExpression' => '/db/schema/CDbExpression.php',
715: 'CDbSchema' => '/db/schema/CDbSchema.php',
716: 'CDbTableSchema' => '/db/schema/CDbTableSchema.php',
717: 'CCubridColumnSchema' => '/db/schema/cubrid/CCubridColumnSchema.php',
718: 'CCubridSchema' => '/db/schema/cubrid/CCubridSchema.php',
719: 'CCubridTableSchema' => '/db/schema/cubrid/CCubridTableSchema.php',
720: 'CMssqlColumnSchema' => '/db/schema/mssql/CMssqlColumnSchema.php',
721: 'CMssqlCommandBuilder' => '/db/schema/mssql/CMssqlCommandBuilder.php',
722: 'CMssqlPdoAdapter' => '/db/schema/mssql/CMssqlPdoAdapter.php',
723: 'CMssqlSchema' => '/db/schema/mssql/CMssqlSchema.php',
724: 'CMssqlSqlsrvPdoAdapter' => '/db/schema/mssql/CMssqlSqlsrvPdoAdapter.php',
725: 'CMssqlTableSchema' => '/db/schema/mssql/CMssqlTableSchema.php',
726: 'CMysqlColumnSchema' => '/db/schema/mysql/CMysqlColumnSchema.php',
727: 'CMysqlCommandBuilder' => '/db/schema/mysql/CMysqlCommandBuilder.php',
728: 'CMysqlSchema' => '/db/schema/mysql/CMysqlSchema.php',
729: 'CMysqlTableSchema' => '/db/schema/mysql/CMysqlTableSchema.php',
730: 'COciColumnSchema' => '/db/schema/oci/COciColumnSchema.php',
731: 'COciCommandBuilder' => '/db/schema/oci/COciCommandBuilder.php',
732: 'COciSchema' => '/db/schema/oci/COciSchema.php',
733: 'COciTableSchema' => '/db/schema/oci/COciTableSchema.php',
734: 'CPgsqlColumnSchema' => '/db/schema/pgsql/CPgsqlColumnSchema.php',
735: 'CPgsqlCommandBuilder' => '/db/schema/pgsql/CPgsqlCommandBuilder.php',
736: 'CPgsqlSchema' => '/db/schema/pgsql/CPgsqlSchema.php',
737: 'CPgsqlTableSchema' => '/db/schema/pgsql/CPgsqlTableSchema.php',
738: 'CSqliteColumnSchema' => '/db/schema/sqlite/CSqliteColumnSchema.php',
739: 'CSqliteCommandBuilder' => '/db/schema/sqlite/CSqliteCommandBuilder.php',
740: 'CSqliteSchema' => '/db/schema/sqlite/CSqliteSchema.php',
741: 'CChoiceFormat' => '/i18n/CChoiceFormat.php',
742: 'CDateFormatter' => '/i18n/CDateFormatter.php',
743: 'CDbMessageSource' => '/i18n/CDbMessageSource.php',
744: 'CGettextMessageSource' => '/i18n/CGettextMessageSource.php',
745: 'CLocale' => '/i18n/CLocale.php',
746: 'CMessageSource' => '/i18n/CMessageSource.php',
747: 'CNumberFormatter' => '/i18n/CNumberFormatter.php',
748: 'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
749: 'CGettextFile' => '/i18n/gettext/CGettextFile.php',
750: 'CGettextMoFile' => '/i18n/gettext/CGettextMoFile.php',
751: 'CGettextPoFile' => '/i18n/gettext/CGettextPoFile.php',
752: 'CChainedLogFilter' => '/logging/CChainedLogFilter.php',
753: 'CDbLogRoute' => '/logging/CDbLogRoute.php',
754: 'CEmailLogRoute' => '/logging/CEmailLogRoute.php',
755: 'CFileLogRoute' => '/logging/CFileLogRoute.php',
756: 'CLogFilter' => '/logging/CLogFilter.php',
757: 'CLogRoute' => '/logging/CLogRoute.php',
758: 'CLogRouter' => '/logging/CLogRouter.php',
759: 'CLogger' => '/logging/CLogger.php',
760: 'CProfileLogRoute' => '/logging/CProfileLogRoute.php',
761: 'CSysLogRoute' => '/logging/CSysLogRoute.php',
762: 'CWebLogRoute' => '/logging/CWebLogRoute.php',
763: 'CDateTimeParser' => '/utils/CDateTimeParser.php',
764: 'CFileHelper' => '/utils/CFileHelper.php',
765: 'CFormatter' => '/utils/CFormatter.php',
766: 'CLocalizedFormatter' => '/utils/CLocalizedFormatter.php',
767: 'CMarkdownParser' => '/utils/CMarkdownParser.php',
768: 'CPasswordHelper' => '/utils/CPasswordHelper.php',
769: 'CPropertyValue' => '/utils/CPropertyValue.php',
770: 'CTimestamp' => '/utils/CTimestamp.php',
771: 'CVarDumper' => '/utils/CVarDumper.php',
772: 'CBooleanValidator' => '/validators/CBooleanValidator.php',
773: 'CCaptchaValidator' => '/validators/CCaptchaValidator.php',
774: 'CCompareValidator' => '/validators/CCompareValidator.php',
775: 'CDateValidator' => '/validators/CDateValidator.php',
776: 'CDefaultValueValidator' => '/validators/CDefaultValueValidator.php',
777: 'CEmailValidator' => '/validators/CEmailValidator.php',
778: 'CExistValidator' => '/validators/CExistValidator.php',
779: 'CFileValidator' => '/validators/CFileValidator.php',
780: 'CFilterValidator' => '/validators/CFilterValidator.php',
781: 'CInlineValidator' => '/validators/CInlineValidator.php',
782: 'CNumberValidator' => '/validators/CNumberValidator.php',
783: 'CRangeValidator' => '/validators/CRangeValidator.php',
784: 'CRegularExpressionValidator' => '/validators/CRegularExpressionValidator.php',
785: 'CRequiredValidator' => '/validators/CRequiredValidator.php',
786: 'CSafeValidator' => '/validators/CSafeValidator.php',
787: 'CStringValidator' => '/validators/CStringValidator.php',
788: 'CTypeValidator' => '/validators/CTypeValidator.php',
789: 'CUniqueValidator' => '/validators/CUniqueValidator.php',
790: 'CUnsafeValidator' => '/validators/CUnsafeValidator.php',
791: 'CUrlValidator' => '/validators/CUrlValidator.php',
792: 'CValidator' => '/validators/CValidator.php',
793: 'CActiveDataProvider' => '/web/CActiveDataProvider.php',
794: 'CArrayDataProvider' => '/web/CArrayDataProvider.php',
795: 'CAssetManager' => '/web/CAssetManager.php',
796: 'CBaseController' => '/web/CBaseController.php',
797: 'CCacheHttpSession' => '/web/CCacheHttpSession.php',
798: 'CClientScript' => '/web/CClientScript.php',
799: 'CController' => '/web/CController.php',
800: 'CDataProvider' => '/web/CDataProvider.php',
801: 'CDataProviderIterator' => '/web/CDataProviderIterator.php',
802: 'CDbHttpSession' => '/web/CDbHttpSession.php',
803: 'CExtController' => '/web/CExtController.php',
804: 'CFormModel' => '/web/CFormModel.php',
805: 'CHttpCookie' => '/web/CHttpCookie.php',
806: 'CHttpRequest' => '/web/CHttpRequest.php',
807: 'CHttpSession' => '/web/CHttpSession.php',
808: 'CHttpSessionIterator' => '/web/CHttpSessionIterator.php',
809: 'COutputEvent' => '/web/COutputEvent.php',
810: 'CPagination' => '/web/CPagination.php',
811: 'CSort' => '/web/CSort.php',
812: 'CSqlDataProvider' => '/web/CSqlDataProvider.php',
813: 'CTheme' => '/web/CTheme.php',
814: 'CThemeManager' => '/web/CThemeManager.php',
815: 'CUploadedFile' => '/web/CUploadedFile.php',
816: 'CUrlManager' => '/web/CUrlManager.php',
817: 'CWebApplication' => '/web/CWebApplication.php',
818: 'CWebModule' => '/web/CWebModule.php',
819: 'CWidgetFactory' => '/web/CWidgetFactory.php',
820: 'CAction' => '/web/actions/CAction.php',
821: 'CInlineAction' => '/web/actions/CInlineAction.php',
822: 'CViewAction' => '/web/actions/CViewAction.php',
823: 'CAccessControlFilter' => '/web/auth/CAccessControlFilter.php',
824: 'CAuthAssignment' => '/web/auth/CAuthAssignment.php',
825: 'CAuthItem' => '/web/auth/CAuthItem.php',
826: 'CAuthManager' => '/web/auth/CAuthManager.php',
827: 'CBaseUserIdentity' => '/web/auth/CBaseUserIdentity.php',
828: 'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
829: 'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
830: 'CUserIdentity' => '/web/auth/CUserIdentity.php',
831: 'CWebUser' => '/web/auth/CWebUser.php',
832: 'CFilter' => '/web/filters/CFilter.php',
833: 'CFilterChain' => '/web/filters/CFilterChain.php',
834: 'CHttpCacheFilter' => '/web/filters/CHttpCacheFilter.php',
835: 'CInlineFilter' => '/web/filters/CInlineFilter.php',
836: 'CForm' => '/web/form/CForm.php',
837: 'CFormButtonElement' => '/web/form/CFormButtonElement.php',
838: 'CFormElement' => '/web/form/CFormElement.php',
839: 'CFormElementCollection' => '/web/form/CFormElementCollection.php',
840: 'CFormInputElement' => '/web/form/CFormInputElement.php',
841: 'CFormStringElement' => '/web/form/CFormStringElement.php',
842: 'CGoogleApi' => '/web/helpers/CGoogleApi.php',
843: 'CHtml' => '/web/helpers/CHtml.php',
844: 'CJSON' => '/web/helpers/CJSON.php',
845: 'CJavaScript' => '/web/helpers/CJavaScript.php',
846: 'CJavaScriptExpression' => '/web/helpers/CJavaScriptExpression.php',
847: 'CPradoViewRenderer' => '/web/renderers/CPradoViewRenderer.php',
848: 'CViewRenderer' => '/web/renderers/CViewRenderer.php',
849: 'CWebService' => '/web/services/CWebService.php',
850: 'CWebServiceAction' => '/web/services/CWebServiceAction.php',
851: 'CWsdlGenerator' => '/web/services/CWsdlGenerator.php',
852: 'CActiveForm' => '/web/widgets/CActiveForm.php',
853: 'CAutoComplete' => '/web/widgets/CAutoComplete.php',
854: 'CClipWidget' => '/web/widgets/CClipWidget.php',
855: 'CContentDecorator' => '/web/widgets/CContentDecorator.php',
856: 'CFilterWidget' => '/web/widgets/CFilterWidget.php',
857: 'CFlexWidget' => '/web/widgets/CFlexWidget.php',
858: 'CHtmlPurifier' => '/web/widgets/CHtmlPurifier.php',
859: 'CInputWidget' => '/web/widgets/CInputWidget.php',
860: 'CMarkdown' => '/web/widgets/CMarkdown.php',
861: 'CMaskedTextField' => '/web/widgets/CMaskedTextField.php',
862: 'CMultiFileUpload' => '/web/widgets/CMultiFileUpload.php',
863: 'COutputCache' => '/web/widgets/COutputCache.php',
864: 'COutputProcessor' => '/web/widgets/COutputProcessor.php',
865: 'CStarRating' => '/web/widgets/CStarRating.php',
866: 'CTabView' => '/web/widgets/CTabView.php',
867: 'CTextHighlighter' => '/web/widgets/CTextHighlighter.php',
868: 'CTreeView' => '/web/widgets/CTreeView.php',
869: 'CWidget' => '/web/widgets/CWidget.php',
870: 'CCaptcha' => '/web/widgets/captcha/CCaptcha.php',
871: 'CCaptchaAction' => '/web/widgets/captcha/CCaptchaAction.php',
872: 'CBasePager' => '/web/widgets/pagers/CBasePager.php',
873: 'CLinkPager' => '/web/widgets/pagers/CLinkPager.php',
874: 'CListPager' => '/web/widgets/pagers/CListPager.php',
875: );
876: }
877:
878: spl_autoload_register(array('YiiBase','autoload'));
879: require(YII_PATH.'/base/interfaces.php');
880: