首页 > TAG信息列表 > Laravel3.0
【Laravel3.0.0源码阅读分析】Postgres语法类
<?php namespace Laravel\Database\Schema\Grammars; use Laravel\Fluent; use Laravel\Database\Schema\Table; class Postgres extends Grammar { /** * Generate the SQL statements for a table creation command. * 为表创建命令生成 SQL 语句。 * @param Tabl【Laravel3.0.0源码阅读分析】MySQL语法类
<?php namespace Laravel\Database\Schema\Grammars; use Laravel\Fluent; use Laravel\Database\Schema\Table; class MySQL extends Grammar { /** * The keyword identifier for the database system. * 数据库系统的关键字标识符。 * @var string */ public $wr【Laravel3.0.0源码阅读分析】SQLServer语法类
<?php namespace Laravel\Database\Query\Grammars; use Laravel\Database\Query; class SQLServer extends Grammar { /** * The keyword identifier for the database system. * 数据库系统的关键字标识符。 * @var string */ protected $wrapper = '[%s]'【Laravel3.0.0源码阅读分析】查询语法类
<?php namespace Laravel\Database\Query\Grammars; use Laravel\Database\Query; use Laravel\Database\Expression; class Grammar extends \Laravel\Database\Grammar { /** * All of the query componenets in the order they should be built. * 所有【Laravel3.0.0源码阅读分析】SQLServer连接类
<?php namespace Laravel\Database\Connectors; use PDO; class SQLServer extends Connector { /** * The PDO connection options. * PDO 连接选项。 * @var array */ protected $options = array( PDO::ATTR_CASE => PDO::CASE_LOWER, PDO::ATTR_ERRM【Laravel3.0.0源码阅读分析】SQLite连接类
<?php namespace Laravel\Database\Connectors; use PDO; class SQLite extends Connector { /** * Establish a PDO database connection. * 建立 PDO 数据库连接。 * @param array $config * @return PDO */ public function connect($config) { $options =【Laravel3.0.0源码阅读分析】Postgres连接类
<?php namespace Laravel\Database\Connectors; use PDO; class Postgres extends Connector { /** * Establish a PDO database connection. * 建立 PDO 数据库连接。 * @param array $config * @return PDO */ public function connect($config) { extract(【Laravel3.0.0源码阅读分析】MySQL连接类
<?php namespace Laravel\Database\Connectors; use PDO; class MySQL extends Connector { /** * Establish a PDO database connection. * 建立 PDO 数据库连接。 * @param array $config * @return PDO */ public function connect($config) { extract($co【Laravel3.0.0源码阅读分析】数据表类schema.php
<?php namespace Laravel\Database; use Laravel\Fluent; use Laravel\Database as DB; class Schema { /** * Begin a fluent schema operation on a database table. * 在数据库表上开始流畅的模式操作。 * @param string $table * @param Closure $callback【Laravel3.0.0源码阅读分析】数据库连接类connection.php
<?php namespace Laravel\Database; use PDO, PDOStatement, Laravel\Config, Laravel\Event; class Connection { /** * The raw PDO connection instance. * 原始 PDO 连接实例。 * @var PDO */ public $pdo; /** * The connection configuration array. *【Laravel3.0.0源码阅读分析】会话驱动接口driver.php
<?php namespace Laravel\Session\Drivers; interface Driver { /** * Load a session from storage by a given ID. * 通过给定的ID从存储加载会话。 * If no session is found for the ID, null will be returned. * * @param string $id * @return array【Laravel3.0.0源码阅读分析】响应类response.php
<?php namespace Laravel; // 响应类 class Response { /** * The content of the response. * 响应的内容。 * @var mixed */ public $content; /** * The HTTP status code of the response. * 响应的 HTTP 状态代码。 * @var int */ public $status =【Laravel3.0.0源码阅读分析】请求类request.php
<?php namespace Laravel; use Closure; // 请求类 class Request { /** * All of the route instances handling the request. * 处理请求的所有路由实例。 * @var array */ public static $route; /** * The request data key that is used to indicate a spoo【Laravel3.0.0源码阅读分析】uri类uri.php
<?php namespace Laravel; class URI { /** * The URI for the current request. * 当前请求的URI。 * @var string */ public static $uri; /** * The URI segments for the current request. * 当前请求的 URI 段。 * @var array */ public static $se【Laravel3.0.0源码阅读分析】url类url.php
<?php namespace Laravel; use Laravel\Routing\Router, Laravel\Routing\Route; class URL { /** * The cached base URL. * 缓存的基本 URL。 * @var string */ public static $base; /** * Get the full URI including the query string. * 获取包含查询字【Laravel3.0.0源码阅读分析】控制反转类ioc.php
<?php namespace Laravel; use Closure; // 控制反转类(Inversion of control) class IoC { /** * The registered dependencies. * 已注册的依赖项。 * @var array */ public static $registry = array(); /** * The resolved singleton instances. * 解析的【Laravel3.0.0源码阅读分析】消息类message.php
<?php namespace Laravel; // 消息类 class Messages { /** * All of the registered messages. * 所有已注册的消息。 * @var array */ public $messages; /** * Create a new Messages instance. * 创建一个新的消息实例。 * @param array $messages【Laravel3.0.0源码阅读分析】日志类log.php
<?php namespace Laravel; // 日志类 class Log { /** * Log an exception to the log file. * 将异常记录到日志文件中。 * @param Exception $e * @return void */ public static function exception($e) { static::write('error', static::format($e)); }【Laravel3.0.0源码阅读分析】资源类asset.php
<?php namespace Laravel; defined('DS') or die('No direct script access.'); class Asset { /** * All of the instantiated asset containers. * 所有实例化的资源容器。 * @var array */ public static $containers = array(); /** * Get an【Laravel3.0.0源码阅读分析】缓存类cache.php
<?php namespace Laravel; defined('DS') or die('No direct script access.'); // 缓存类 class Cache { /** * All of the active cache drivers. * 所有可用的缓存驱动 * @var array */ public static $drivers = array(); /** * Get a cache dr【Laravel3.0.0源码阅读分析】错误配置文件error.php
<?php // 路径 application/config/error.php return array( /* |-------------------------------------------------------------------------- | Ignored Error Levels |-------------------------------------------------------------------------- | 忽略的错误级别【Laravel3.0.0源码阅读分析】授权文件auth.php
<?php // 路径 application/config/auth.php return array( /* |-------------------------------------------------------------------------- | Retrieve The Current User |-------------------------------------------------------------------------- | 获取当前用