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 | |
/** | |
* @return array the behavior configurations (behavior name=>behavior configuration) | |
*/ | |
public function behaviors() { | |
return array( | |
'audit' => array('class' => 'common.extensions.audit.behaviors.AuditBehavior'), | |
'image' => array('class' => 'vendor.crisu83.yii-image.behaviors.ImageBehavior'), | |
); |
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 DateFormatterBehavior extends CActiveRecordBehavior { | |
const WIDTH_SHORT = 'short'; | |
const WIDTH_MEDIUM = 'medium'; | |
const WIDTH_LONG = 'long'; | |
public $dates = array(); | |
public function afterFind($event) { |
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 | |
require(__DIR__ . '/../models/AuditAttribute.php'); | |
require(__DIR__ . '/../models/AuditModel.php'); | |
class AuditBehavior extends CActiveRecordBehavior { | |
// Audit actions | |
const ACTION_CREATE = 'create'; | |
const ACTION_DELETE = 'delete'; |
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", |