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
/** | |
* Rot13 class. | |
* @author Christoffer Niska <christoffer.niska@nordsoftware.com> | |
* @copyright Copyright (c) 2011, Christoffer Niska | |
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | |
*/ | |
var Rot13 = { | |
map: null, | |
length: 0, | |
init: function() { |
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
#include "stdafx.h" | |
Position::Position(void) | |
: mTurn(0) | |
{ | |
} | |
Position::~Position(void) | |
{ | |
} |
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 | |
/** | |
* ImageBehavior class file. | |
* @author Christoffer Niska <ChristofferNiska@gmail.com> | |
* @copyright Copyright © Christoffer Niska 2011- | |
* @license http://www.opensource.org/licenses/bsd-license New BSD License | |
* @since 1.1.0 | |
*/ | |
class ImageBehavior extends CBehavior | |
{ |
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 | |
/** | |
* CmsUrlManager class file. | |
* @author Christoffer Niska <christoffer.niska@nordsoftware.com> | |
* @copyright Copyright © 2012, Nord Software Ltd | |
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | |
* @package cms.components | |
*/ | |
/** |
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 DynamicForm extends CFormModel | |
{ | |
private $_rules = array(); | |
private $_properties = array(); | |
public function __set($name, $value) | |
{ | |
if (isset($this->_properties[$name])) |
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 | |
public function actionDelete() | |
{ | |
$request = Yii::app()->request; | |
if ($request->isPostRequest && isset($_GET['name'])) | |
{ | |
$name = $_GET['name']; | |
/* @var $am CAuthManager|AuthBehavior */ | |
$am = Yii::app()->getAuthManager(); | |
$item = $am->getAuthItem($name); |
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 CachedDbAuthManager extends CDbAuthManager | |
{ | |
const CACHE_KEY_PREFIX = 'Auth.CachedDbAuthManager.'; | |
/** | |
* @var integer the time in seconds that the messages can remain valid in cache. | |
* Defaults to 0, meaning the caching is disabled. | |
*/ |
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 | |
/** | |
* AuthFilter class file. | |
* @author Christoffer Niska <ChristofferNiska@gmail.com> | |
* @copyright Copyright © Christoffer Niska 2012- | |
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | |
* @package auth.components | |
*/ | |
/** |
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 | |
/** | |
* Registers a specific Bootstrap plugin with the given selector and options. | |
* @param string $name the plugin name. | |
* @param string $selector the CSS selector. | |
* @param array $options plugin JavaScript options. | |
* @param int $position the position of the JavaScript code. | |
*/ | |
public function registerPlugin($name, $selector, $options = array(), $position = CClientScript::POS_END) | |
{ |
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 | |
/** | |
* Generates a button group. | |
* @param array $buttons the button configurations. | |
* @param array $htmlOptions additional HTML options. The following special options are recognized: | |
* todo: write the options | |
* @return string the generated button group. | |
*/ | |
public static function buttonGroup($buttons, $htmlOptions = array()) | |
{ |
OlderNewer