Skip to content

Commit

Permalink
Updated upstream to kohana/kohana@af7ce3d
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Apr 26, 2013
1 parent 9b1f715 commit 9745765
Show file tree
Hide file tree
Showing 185 changed files with 624 additions and 666 deletions.
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/Arr.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class Arr extends Kohana_Arr {}
class Arr extends Kohana_Arr {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/Config.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class Config extends Kohana_Config {}
class Config extends Kohana_Config {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/Config/File.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class Config_File extends Kohana_Config_File {}
class Config_File extends Kohana_Config_File {}
3 changes: 1 addition & 2 deletions kohana3/modified/system/classes/Config/Group.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');


class Config_Group extends Kohana_Config_Group {}
class Config_Group extends Kohana_Config_Group {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/File.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class File extends Kohana_File {}
class File extends Kohana_File {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTML.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTML extends Kohana_HTML {}
class HTML extends Kohana_HTML {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

abstract class HTTP extends Kohana_HTTP {}
abstract class HTTP extends Kohana_HTTP {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception extends Kohana_HTTP_Exception {}
class HTTP_Exception extends Kohana_HTTP_Exception {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/300.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_300 extends Kohana_HTTP_Exception_300 {}
class HTTP_Exception_300 extends Kohana_HTTP_Exception_300 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/301.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_301 extends Kohana_HTTP_Exception_301 {}
class HTTP_Exception_301 extends Kohana_HTTP_Exception_301 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/302.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_302 extends Kohana_HTTP_Exception_302 {}
class HTTP_Exception_302 extends Kohana_HTTP_Exception_302 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/303.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_303 extends Kohana_HTTP_Exception_303 {}
class HTTP_Exception_303 extends Kohana_HTTP_Exception_303 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/304.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_304 extends Kohana_HTTP_Exception_304 {}
class HTTP_Exception_304 extends Kohana_HTTP_Exception_304 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/305.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_305 extends Kohana_HTTP_Exception_305 {}
class HTTP_Exception_305 extends Kohana_HTTP_Exception_305 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/307.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_307 extends Kohana_HTTP_Exception_307 {}
class HTTP_Exception_307 extends Kohana_HTTP_Exception_307 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/400.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_400 extends Kohana_HTTP_Exception_400 {}
class HTTP_Exception_400 extends Kohana_HTTP_Exception_400 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/401.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_401 extends Kohana_HTTP_Exception_401 {}
class HTTP_Exception_401 extends Kohana_HTTP_Exception_401 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/402.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_402 extends Kohana_HTTP_Exception_402 {}
class HTTP_Exception_402 extends Kohana_HTTP_Exception_402 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/403.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_403 extends Kohana_HTTP_Exception_403 {}
class HTTP_Exception_403 extends Kohana_HTTP_Exception_403 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/404.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_404 extends Kohana_HTTP_Exception_404 {}
class HTTP_Exception_404 extends Kohana_HTTP_Exception_404 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/405.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_405 extends Kohana_HTTP_Exception_405 {}
class HTTP_Exception_405 extends Kohana_HTTP_Exception_405 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/406.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_406 extends Kohana_HTTP_Exception_406 {}
class HTTP_Exception_406 extends Kohana_HTTP_Exception_406 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/407.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_407 extends Kohana_HTTP_Exception_407 {}
class HTTP_Exception_407 extends Kohana_HTTP_Exception_407 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/408.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_408 extends Kohana_HTTP_Exception_408 {}
class HTTP_Exception_408 extends Kohana_HTTP_Exception_408 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/409.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_409 extends Kohana_HTTP_Exception_409 {}
class HTTP_Exception_409 extends Kohana_HTTP_Exception_409 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/410.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_410 extends Kohana_HTTP_Exception_410 {}
class HTTP_Exception_410 extends Kohana_HTTP_Exception_410 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/411.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_411 extends Kohana_HTTP_Exception_411 {}
class HTTP_Exception_411 extends Kohana_HTTP_Exception_411 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/412.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_412 extends Kohana_HTTP_Exception_412 {}
class HTTP_Exception_412 extends Kohana_HTTP_Exception_412 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/413.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_413 extends Kohana_HTTP_Exception_413 {}
class HTTP_Exception_413 extends Kohana_HTTP_Exception_413 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/414.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_414 extends Kohana_HTTP_Exception_414 {}
class HTTP_Exception_414 extends Kohana_HTTP_Exception_414 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/415.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_415 extends Kohana_HTTP_Exception_415 {}
class HTTP_Exception_415 extends Kohana_HTTP_Exception_415 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/416.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_416 extends Kohana_HTTP_Exception_416 {}
class HTTP_Exception_416 extends Kohana_HTTP_Exception_416 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/417.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_417 extends Kohana_HTTP_Exception_417 {}
class HTTP_Exception_417 extends Kohana_HTTP_Exception_417 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/500.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_500 extends Kohana_HTTP_Exception_500 {}
class HTTP_Exception_500 extends Kohana_HTTP_Exception_500 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/501.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_501 extends Kohana_HTTP_Exception_501 {}
class HTTP_Exception_501 extends Kohana_HTTP_Exception_501 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/502.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_502 extends Kohana_HTTP_Exception_502 {}
class HTTP_Exception_502 extends Kohana_HTTP_Exception_502 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/503.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_503 extends Kohana_HTTP_Exception_503 {}
class HTTP_Exception_503 extends Kohana_HTTP_Exception_503 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/504.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_504 extends Kohana_HTTP_Exception_504 {}
class HTTP_Exception_504 extends Kohana_HTTP_Exception_504 {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Exception/505.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_505 extends Kohana_HTTP_Exception_505 {}
class HTTP_Exception_505 extends Kohana_HTTP_Exception_505 {}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

abstract class HTTP_Exception_Expected extends Kohana_HTTP_Exception_Expected {}
abstract class HTTP_Exception_Expected extends Kohana_HTTP_Exception_Expected {}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

abstract class HTTP_Exception_Redirect extends Kohana_HTTP_Exception_Redirect {}
abstract class HTTP_Exception_Redirect extends Kohana_HTTP_Exception_Redirect {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Header.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class HTTP_Header extends Kohana_HTTP_Header {}
class HTTP_Header extends Kohana_HTTP_Header {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Message.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

interface HTTP_Message extends Kohana_HTTP_Message {}
interface HTTP_Message extends Kohana_HTTP_Message {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Request.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

interface HTTP_Request extends Kohana_HTTP_Request {}
interface HTTP_Request extends Kohana_HTTP_Request {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/HTTP/Response.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

interface HTTP_Response extends Kohana_HTTP_Response {}
interface HTTP_Response extends Kohana_HTTP_Response {}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/Inflector.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') OR die('No direct script access.');

class Inflector extends Kohana_Inflector {}
class Inflector extends Kohana_Inflector {}
4 changes: 2 additions & 2 deletions kohana3/modified/system/classes/Kohana/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public static function get($array, $key, $default = NULL)
*
* // Get the values "username", "password" from $_POST
* $auth = Arr::extract($_POST, array('username', 'password'));
*
*
* // Get the value "level1.level2a" from $data
* $data = array('level1' => array('level2a' => 'value 1', 'level2b' => 'value 2'));
* Arr::extract($data, array('level1.level2a', 'password'));
Expand Down Expand Up @@ -617,4 +617,4 @@ public static function flatten($array)
return $flat;
}

} // End arr
}
14 changes: 7 additions & 7 deletions kohana3/modified/system/classes/Kohana/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Wrapper for configuration arrays. Multiple configuration readers can be
* attached to allow loading configuration from files, database, etc.
*
* Configuration directives cascade across config sources in the same way that
* Configuration directives cascade across config sources in the same way that
* files cascade across the filesystem.
*
* Directives from sources high in the sources list will override ones from those
Expand Down Expand Up @@ -74,9 +74,9 @@ public function detach(Kohana_Config_Source $source)
}

/**
* Load a configuration group. Searches all the config sources, merging all the
* directives found into a single config group. Any changes made to the config
* in this group will be mirrored across all writable sources.
* Load a configuration group. Searches all the config sources, merging all the
* directives found into a single config group. Any changes made to the config
* in this group will be mirrored across all writable sources.
*
* $array = $config->load($name);
*
Expand Down Expand Up @@ -146,7 +146,7 @@ public function load($group)

/**
* Copy one configuration group to all of the other writers.
*
*
* $config->copy($name);
*
* @param string $group configuration group name
Expand Down Expand Up @@ -181,12 +181,12 @@ public function _write_config($group, $key, $value)
{
continue;
}

// Copy each value in the config
$source->write($group, $key, $value);
}

return $this;
}

} // End Kohana_Config
}
2 changes: 1 addition & 1 deletion kohana3/modified/system/classes/Kohana/Config/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @copyright (c) 2009-2012 Kohana Team
* @license http://kohanaframework.org/license
*/
class Kohana_Config_File extends Kohana_Config_File_Reader
class Kohana_Config_File extends Kohana_Config_File_Reader
{
// @see Kohana_Config_File_Reader
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ public function load($group)
return $config;
}

} // End Kohana_Config
}
9 changes: 5 additions & 4 deletions kohana3/modified/system/classes/Kohana/Config/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* The group wrapper acts as an interface to all the config directives
* gathered from across the system.
*
* This is the object returned from Kohana_Config::load
* This is the object returned from Kohana_Config::load
*
* Any modifications to configuration items should be done through an instance of this object
*
Expand All @@ -31,7 +31,7 @@ class Kohana_Config_Group extends ArrayObject {
protected $_group_name = '';

/**
* Constructs the group object. Kohana_Config passes the config group
* Constructs the group object. Kohana_Config passes the config group
* and its config items to the object here.
*
* @param Kohana_Config $instance "Owning" instance of Kohana_Config
Expand Down Expand Up @@ -77,7 +77,7 @@ public function group_name()
{
return $this->_group_name;
}

/**
* Get a variable from the configuration or return the default value.
*
Expand Down Expand Up @@ -110,7 +110,7 @@ public function set($key, $value)

/**
* Overrides ArrayObject::offsetSet()
* This method is called when config is changed via
* This method is called when config is changed via
*
* $config->var = 'asd';
*
Expand All @@ -127,4 +127,5 @@ public function offsetSet($key, $value)

return parent::offsetSet($key, $value);
}

}
Loading

0 comments on commit 9745765

Please sign in to comment.