forked from LimeSurvey/LimeSurvey
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,094 changed files
with
13,527 additions
and
5,914 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
* @package system | ||
* @since 1.0 | ||
|
@@ -80,7 +80,7 @@ class YiiBase | |
*/ | ||
public static function getVersion() | ||
{ | ||
return '1.1.13'; | ||
return '1.1.14'; | ||
} | ||
|
||
/** | ||
|
@@ -287,8 +287,14 @@ public static function import($alias,$forceInclude=false) | |
return $alias; | ||
} | ||
else | ||
throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing directory.', | ||
array('{alias}'=>$namespace))); | ||
{ | ||
// try to autoload the class with an autoloader | ||
if (class_exists($alias,true)) | ||
return self::$_imports[$alias]=$alias; | ||
else | ||
throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing directory or file.', | ||
array('{alias}'=>$namespace))); | ||
} | ||
} | ||
|
||
if(($pos=strrpos($alias,'.'))===false) // a simple class name | ||
|
@@ -612,6 +618,9 @@ public static function t($category,$message,$params=array(),$source=null,$langua | |
* any other existing autoloaders. | ||
* @param callback $callback a valid PHP callback (function name or array($className,$methodName)). | ||
* @param boolean $append whether to append the new autoloader after the default Yii autoloader. | ||
* Be careful using this option as it will disable {@link enableIncludePath autoloading via include path} | ||
* when set to true. After this the Yii autoloader can not rely on loading classes via simple include anymore | ||
* and you have to {@link import} all classes explicitly. | ||
*/ | ||
public static function registerAutoloader($callback, $append=false) | ||
{ | ||
|
@@ -656,6 +665,7 @@ public static function registerAutoloader($callback, $append=false) | |
'CEAcceleratorCache' => '/caching/CEAcceleratorCache.php', | ||
'CFileCache' => '/caching/CFileCache.php', | ||
'CMemCache' => '/caching/CMemCache.php', | ||
'CRedisCache' => '/caching/CRedisCache.php', | ||
'CWinCache' => '/caching/CWinCache.php', | ||
'CXCache' => '/caching/CXCache.php', | ||
'CZendDataCache' => '/caching/CZendDataCache.php', | ||
|
@@ -714,6 +724,7 @@ public static function registerAutoloader($callback, $append=false) | |
'COciSchema' => '/db/schema/oci/COciSchema.php', | ||
'COciTableSchema' => '/db/schema/oci/COciTableSchema.php', | ||
'CPgsqlColumnSchema' => '/db/schema/pgsql/CPgsqlColumnSchema.php', | ||
'CPgsqlCommandBuilder' => '/db/schema/pgsql/CPgsqlCommandBuilder.php', | ||
'CPgsqlSchema' => '/db/schema/pgsql/CPgsqlSchema.php', | ||
'CPgsqlTableSchema' => '/db/schema/pgsql/CPgsqlTableSchema.php', | ||
'CSqliteColumnSchema' => '/db/schema/sqlite/CSqliteColumnSchema.php', | ||
|
@@ -743,7 +754,9 @@ public static function registerAutoloader($callback, $append=false) | |
'CDateTimeParser' => '/utils/CDateTimeParser.php', | ||
'CFileHelper' => '/utils/CFileHelper.php', | ||
'CFormatter' => '/utils/CFormatter.php', | ||
'CLocalizedFormatter' => '/utils/CLocalizedFormatter.php', | ||
'CMarkdownParser' => '/utils/CMarkdownParser.php', | ||
'CPasswordHelper' => '/utils/CPasswordHelper.php', | ||
'CPropertyValue' => '/utils/CPropertyValue.php', | ||
'CTimestamp' => '/utils/CTimestamp.php', | ||
'CVarDumper' => '/utils/CVarDumper.php', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
@@ -140,7 +140,18 @@ public function __construct($config=null) | |
$this->setBasePath('protected'); | ||
Yii::setPathOfAlias('application',$this->getBasePath()); | ||
Yii::setPathOfAlias('webroot',dirname($_SERVER['SCRIPT_FILENAME'])); | ||
Yii::setPathOfAlias('ext',$this->getBasePath().DIRECTORY_SEPARATOR.'extensions'); | ||
if(isset($config['extensionPath'])) | ||
{ | ||
$this->setExtensionPath($config['extensionPath']); | ||
unset($config['extensionPath']); | ||
} | ||
else | ||
Yii::setPathOfAlias('ext',$this->getBasePath().DIRECTORY_SEPARATOR.'extensions'); | ||
if(isset($config['aliases'])) | ||
{ | ||
$this->setAliases($config['aliases']); | ||
unset($config['aliases']); | ||
} | ||
|
||
$this->preinit(); | ||
|
||
|
@@ -292,6 +303,7 @@ public function getExtensionPath() | |
/** | ||
* Sets the root directory that holds all third-party extensions. | ||
* @param string $path the directory that contains all third-party extensions. | ||
* @throws CException if the directory does not exist | ||
*/ | ||
public function setExtensionPath($path) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
@@ -47,7 +47,7 @@ public function init() | |
} | ||
|
||
/** | ||
* Checks if this application component bas been initialized. | ||
* Checks if this application component has been initialized. | ||
* @return boolean whether this application component has been initialized (ie, {@link init()} is invoked). | ||
*/ | ||
public function getIsInitialized() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
@@ -248,6 +248,7 @@ public function __unset($name) | |
* to implement the behavior feature. | ||
* @param string $name the method name | ||
* @param array $parameters method parameters | ||
* @throws CException if current class and its behaviors do not have a method or closure with the given name | ||
* @return mixed the method return value | ||
*/ | ||
public function __call($name,$parameters) | ||
|
@@ -318,6 +319,8 @@ public function detachBehaviors() | |
* @param string $name the behavior's name. It should uniquely identify this behavior. | ||
* @param mixed $behavior the behavior configuration. This is passed as the first | ||
* parameter to {@link YiiBase::createComponent} to create the behavior object. | ||
* You can also pass an already created behavior instance (the new behavior will replace an already created | ||
* behavior with the same name, if it exists). | ||
* @return IBehavior the behavior object | ||
*/ | ||
public function attachBehavior($name,$behavior) | ||
|
@@ -593,6 +596,9 @@ public function raiseEvent($name,$event) | |
* that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract} | ||
* for more details. In the expression, the component object can be accessed using $this. | ||
* | ||
* A PHP expression can be any PHP code that has a value. To learn more about what an expression is, | ||
* please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}. | ||
* | ||
* @param mixed $_expression_ a PHP expression or PHP callback to be evaluated. | ||
* @param array $_data_ additional parameters to be passed to the above expression/callback. | ||
* @return mixed the expression result | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
@@ -275,6 +275,7 @@ public function getValidators($attribute=null) | |
/** | ||
* Creates validator objects based on the specification in {@link rules}. | ||
* This method is mainly used internally. | ||
* @throws CException if current class has an invalid validation rule | ||
* @return CList validators built based on {@link rules()}. | ||
*/ | ||
public function createValidators() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author Qiang Xue <[email protected]> | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright © 2008-2011 Yii Software LLC | ||
* @copyright 2008-2013 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
|
Oops, something went wrong.