搜索结果
查询Tags标签: Laravel3.0,共有 10条记录-
【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($config);$dsn = &qu…
2021/7/3 19:24:53 人评论 次浏览 -
【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 = $this->optio…
2021/7/3 19:24:52 人评论 次浏览 -
【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_ERRMODE => PDO::ERRM…
2021/7/3 19:24:52 人评论 次浏览 -
【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];/*** Compile a SQL…
2021/7/3 19:24:51 人评论 次浏览 -
【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 $wrapper = `%…
2021/7/3 19:24:50 人评论 次浏览 -
【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* @return…
2021/6/7 22:37:05 人评论 次浏览 -
【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.* 连接配置数组。* @v…
2021/6/7 2:21:13 人评论 次浏览 -
【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*/public functio…
2021/6/1 22:23:49 人评论 次浏览 -
【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 $segments = array();/*** The …
2021/5/30 14:49:59 人评论 次浏览 -
【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.* 获取包含查询字符串的完整 URI。* …
2021/5/30 14:20:21 人评论 次浏览