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
<?php | |
/* Core implementation */ | |
// Helper | |
namespace bootstrap\helpers; | |
class Html extends \CHtml { | |
public static function someStaticHelperMethod() { |
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
<?php | |
class ActiveRecord extends CActiveRecord | |
{ | |
/** | |
* Returns a model attribute through the given relations. | |
* @param string|array $through the relation or a list of relations. | |
* @param string $attribute the attribute name. | |
* @param string $defaultValue the default value to return if the relation is not found. | |
* @return string the 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
<?php | |
/** | |
* Debugger class file. | |
* @author Christoffer Niska <christoffer.niska@gmail.com> | |
* @copyright Copyright © Christoffer Niska 2013- | |
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | |
*/ | |
/** | |
* Helper for enabling debugging based on the ip address. |
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
<?php | |
/** | |
* C83ExtensionBehavior class file. | |
* @author Christoffer Niska <christoffer.niska@gmail.com> | |
* @copyright Copyright © Christoffer Niska 2013- | |
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | |
* @package vendor.crisu83.yii-extension.behaviors | |
*/ | |
/** |
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
<?php | |
/** | |
* FileManager class file. | |
* @author Christoffer Niska <christoffer.niska@gmail.com> | |
* @copyright Copyright © Christoffer Niska 2013- | |
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | |
* @package crisu83.yii-filemanager.components | |
*/ | |
Yii::import('vendor.crisu83.yii-extension.behaviors.ComponentBehavior', true/* force include */); |
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
<?php | |
/** | |
* FileManager class file. | |
* @author Christoffer Niska <christoffer.niska@gmail.com> | |
* @copyright Copyright © Christoffer Niska 2013- | |
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | |
* @package crisu83.yii-filemanager.components | |
*/ | |
Yii::import('vendor.crisu83.yii-extension.behaviors.ComponentBehavior', true/* force include */); |
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
{ | |
"name": "yii-twbs/yiistrap", | |
"description": "Twitter Bootstrap for the Yii PHP framework.", | |
"type": "yii-extension", | |
"keywords": ["bootstrap"], | |
"license": "BSD-3-Clause", | |
"authors": [ | |
{ | |
"name": "Christoffer Niska", | |
"email": "christoffer.niska@gmail.com", |
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
{ | |
"name": "yii-twbs/yiistrap", | |
"description": "Twitter Bootstrap for the Yii PHP framework.", | |
"type": "yii-extension", | |
"keywords": ["bootstrap"], | |
"license": "BSD-3-Clause", | |
"authors": [ | |
{ | |
"name": "Christoffer Niska", | |
"email": "christoffer.niska@gmail.com", |
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
<?php | |
/** | |
* Returns the version of this node based on the given set of conditions. | |
* @param array $conditions the condition configurations (name=>value). | |
* @return CmsNodeVersion the version model. | |
*/ | |
public function resolveVersion($conditions) { | |
// If we have conditions we need to do a bit of a trickier query. | |
if (!empty($conditions)) { | |
$select = array(); |
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
<?php | |
class WorkflowBehavior extends CActiveRecordBehavior | |
{ | |
/** | |
* @var string the name of the status attribute. | |
*/ | |
public $statusAttribute = 'status'; | |
/** | |
* @var integer the default status. |