yii源码二 -- interfaces

path:framework/base/interfaces.php

overview:This file contains core interfaces for Yii framework.

interface IApplicationComponent:all application components must implement。
   在application完成配置后就调用init()初始化application。

interface ICache:must be implemented by cache components。

interface ICacheDependency:must be implemented by cache dependency classes.

interface IStatePersister:must be implemented by state persister classes.

interface IFilter:must be implemented by action filters.

interface IAction:must be implemented by controller actions.

interface IWebServiceProvider:may be implemented by Web service provider classes.

interface IViewRenderer:is implemented by a view renderer class.

interface IUserIdentity:is implemented by a user identity class.

interface IWebUser:is implemented by a user application component}.

interface IAuthManager:is implemented by an auth manager application component.

interface IBehavior:is implemented by all behavior classes.

interface IWidgetFactory:must be implemented by a widget factory class.

interface IDataProvider:must be implemented by data provider classes.

interface ILogFilter:must be implemented by log filters.

yii源码二 -- interfaces

时间: 2024-08-09 22:37:18

yii源码二 -- interfaces的相关文章

yii源码三 -- db

CDbConnection:path:/framework/db/CDbConnection.phpoverview:CDbConnection represents a connection to a database. 工作原理:CDbConnection works together with CDbCommand, CDbDataReader and CDbTransaction to provide data access to various DBMS.且基于PDO扩展. 首先用$c

yii源码一

CComponent: path:framework/base/CComponent.php overview:This file contains the foundation classes for component-based and event-driven programming.              (包含基于组件和事件驱动编程的基础类,是所有components的基类) 1.property定义 $a=$component->text; // equivalent to $

Yii源码阅读笔记 - 日志组件

?使用 Yii框架为开发者提供两个静态方法进行日志记录: Yii::log($message, $level, $category);Yii::trace($message, $category); 两者的区别在于后者依赖于应用开启调试模式,即定义常量YII_DEBUG: defined('YII_DEBUG') or define('YII_DEBUG', true); Yii::log方法的调用需要指定message的level和category.category是格式为“xxx.yyy.z

看看Spring源码(二)——bean实例化

首先来看一段代码,看过上一节的朋友肯定对这段代码并不陌生.这一段代码诠释了Spring加载bean的完整过程,包括读取配置文件,扫描包,加载类,实例化bean,注入bean属性依赖. public void refresh() throws BeansException, IllegalStateException { synchronized (this.startupShutdownMonitor) { // Prepare this context for refreshing. prep

yii源码分析4——非核心类的导入注册

转载请注明: TheViper http://www.cnblogs.com/TheViper  在yii源码分析1中说到spl_autoload_register注册给定的函数作为 __autoload 的实现,在这里是autoload(). public static function autoload($className) { include self::$_coreClasses [$className]; } 实际上这个autoload()是没有考虑非核心文件的引入的.比如,在app

深入java并发包源码(二)AQS的介绍与使用

深入java并发包源码(一)简介 深入java并发包源码(二)AQS的介绍与使用 深入java并发包源码(三)AQS独占方法源码分析 AQS 本文章会讲解 AQS 的使用方法,然后通过 DEBUG 跟踪 AQS 执行的一系列操作来分析源码,读者跟着文章 DEBUG 跟踪源码能更容易理解. AQS 是什么? AbstractQueuedSynchronizer 队列同步器(AQS)是一个抽象类,作为并发工具的基础组件,为真正的实现类提供基础设施.并发工具是面向使用者的,AQS 面向的是并发工具的实

群控云控源码二次开发定制

群控云控源码二次开发定制系统介绍:群控系统是在windows系统下运行的,具有操作简单,运行稳定,升级方便,功能丰富等优点,系统同时可以管理大量wei信帐号,一号一机,安全稳定,不容易封号主要功能:通过Android自动化控制集成系统,把多个手机操作界面直接映射到电脑显示器,实现一台电脑来控制多部手机操作.批量发朋友圈,批量wei信聊天,自动化批量加好友,便捷智能,稳定防封号.群控系统介绍实时群控 支持一台电脑控制管理15-300部手机,电脑画面和手机屏幕实时同步操作自动营销电脑一键实现多部手机

CAD ObjectARX扩展工具的源码(二)

CAD ObjectARX扩展工具的源码(二)  //AcDbObjectId CDrawFunction::createtextAll(AcGePoint3d pt,char *text,AcDb::TextHorzMode hMode,AcDb::TextertMode Mode,double hight,double widthFactor,double rotation,int color,CString smallFontName,CString bigFontName,CString

Yii源码阅读笔记(一)

今天开始阅读yii2的源码,想深入了解一下yii框架的工作原理,同时学习一下优秀的编码规范和风格.在此记录一下阅读中的小心得. 每个框架都有一个入口文件,首先从入口文件开始,yii2的入口文件位于web目录的index.php,用于启动web应用和配置一些路径参数. index.php—— 1 // comment out the following two lines when deployed to production 2 defined('YII_DEBUG') or define('Y