Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
d197a97a
Commit
d197a97a
authored
Aug 15, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove comment bloat.
parent
83ab6092
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
106 deletions
+0
-106
arr.php
system/arr.php
+0
-8
asset.php
system/asset.php
+0
-40
auth.php
system/auth.php
+0
-18
cache.php
system/cache.php
+0
-24
config.php
system/config.php
+0
-16
No files found.
system/arr.php
View file @
d197a97a
...
...
@@ -9,14 +9,6 @@ class Arr {
* also be accessed using JavaScript "dot" style notation. Retrieving items nested
* in multiple arrays is also supported.
*
* <code>
* // Returns "taylor"
* $item = Arr::get(array('name' => 'taylor'), 'name', $default);
*
* // Returns "taylor"
* $item = Arr::get(array('name' => array('is' => 'taylor')), 'name.is');
* </code>
*
* @param array $array
* @param string $key
* @param mixed $default
...
...
system/asset.php
View file @
d197a97a
...
...
@@ -21,17 +21,6 @@ class Asset {
* Containers provide a convenient method of grouping assets while maintaining
* expressive code and a clean API.
*
* <code>
* // Get the default asset container
* $container = Asset::container();
*
* // Get the "footer" asset contanier
* $container = Asset::container('footer');
*
* // Add an asset to the "footer" container
* Asset::container('footer')->add('jquery', 'js/jquery.js');
* </code>
*
* @param string $container
* @return Asset_Container
*/
...
...
@@ -47,14 +36,6 @@ class Asset {
/**
* Magic Method for calling methods on the default Asset container.
*
* <code>
* // Add jQuery to the default container
* Asset::script('jquery', 'js/jquery.js');
*
* // Equivalent call using the container method
* Asset::container()->script('jquery', 'js/jquery.js');
* </code>
*/
public
static
function
__callStatic
(
$method
,
$parameters
)
{
...
...
@@ -97,23 +78,10 @@ class Asset_Container {
* asset being registered (CSS or JavaScript). If you are using a non-standard
* extension, you may use the style or script methods to register assets.
*
* <code>
* // Register a jQuery asset
* Asset::add('jquery', 'js/jquery.js');
* </code>
*
* You may also specify asset dependencies. This will instruct the class to
* only link to the registered asset after its dependencies have been linked.
* For example, you may wish to make jQuery UI dependent on jQuery.
*
* <code>
* // Register jQuery UI as dependent on jQuery
* Asset::add('jquery-ui', 'js/jquery-ui.js', 'jquery');
*
* // Register jQuery UI with multiple dependencies
* Asset::add('jquery-ui', 'js/jquery-ui.js', array('jquery', 'fader'));
* </code>
*
* @param string $name
* @param string $source
* @param array $dependencies
...
...
@@ -226,10 +194,6 @@ class Asset_Container {
/**
* Get the link to a single registered CSS asset.
*
* <code>
* echo $container->get_style('common');
* </code>
*
* @param string $name
* @return string
*/
...
...
@@ -241,10 +205,6 @@ class Asset_Container {
/**
* Get the link to a single registered JavaScript asset.
*
* <code>
* echo $container->get_script('jquery');
* </code>
*
* @param string $name
* @return string
*/
...
...
system/auth.php
View file @
d197a97a
...
...
@@ -30,13 +30,6 @@ class Auth {
/**
* Determine if the current user of the application is authenticated.
*
* <code>
* if (Auth::check())
* {
* // The user is logged in...
* }
* </code>
*
* @return bool
* @see login
*/
...
...
@@ -52,10 +45,6 @@ class Auth {
* the "by_id" closure in the authentication configuration file. The result
* of the closure will be cached and returned.
*
* <code>
* $email = Auth::user()->email;
* </code>
*
* @return object
* @see $user
*/
...
...
@@ -78,13 +67,6 @@ class Auth {
* The password passed to the method should be plain text, as it will be hashed
* by the Hash class when authenticating.
*
* <code>
* if (Auth::login('test@gmail.com', 'secret'))
* {
* // The credentials are valid...
* }
* </code>
*
* @param string $username
* @param string $password
* @return bool
...
...
system/cache.php
View file @
d197a97a
...
...
@@ -47,22 +47,6 @@ class Cache {
/**
* Get an item from the cache.
*
* If the cached item doesn't exist, the specified default value will be returned.
*
* <code>
* // Get the "name" item from the cache
* $name = Cache::get('name');
*
* // Get the "name" item, but return "Fred" if it doesn't exist
* $name = Cache::get('name', 'Fred');
* </code>
*
* The driver may also be specified:
*
* <code>
* $name = Cache::get('name', null, 'memcached');
* </code>
*
* @param string $key
* @param mixed $default
* @param string $driver
...
...
@@ -82,14 +66,6 @@ class Cache {
* Get an item from the cache. If the item doesn't exist in the cache, store
* the default value in the cache and return it.
*
* <code>
* // Get the name item. If it doesn't exist, store "Fred" for 30 minutes
* $name = Cache::remember('name', 'Fred', 30);
*
* // Closures may also be used as default values
* $name = Cache::remember('votes', function() {return Vote::count();}, 30);
* </code>
*
* @param string $key
* @param mixed $default
* @param int $minutes
...
...
system/config.php
View file @
d197a97a
...
...
@@ -32,14 +32,6 @@ class Config {
* If the name of a configuration file is passed without specifying an item, the
* entire configuration array will be returned.
*
* <code>
* // Get the application timezone
* $timezone = Config::get('application.timezone');
*
* // Get the application configuration array
* $application = Config::get('application');
* </code>
*
* @param string $key
* @param string $default
* @return array
...
...
@@ -63,14 +55,6 @@ class Config {
*
* If a configuration item is not specified, the entire configuration array will be set.
*
* <code>
* // Set the application timezone
* Config::set('application.timezone', 'America/Chicago');
*
* // Set the application configuration array
* Config::set('application', array());
* </code>
*
* @param string $key
* @param mixed $value
* @return void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment