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
#!/bin/bash | |
set -x | |
set -o errexit | |
if [ ! -d "sakila-db" ]; then | |
wget http://downloads.mysql.com/docs/sakila-db.tar.gz | |
tar -xvf sakila-db.tar.gz | |
fi |
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 | |
$_SERVER['SCRIPT_FILENAME'] = 'index-test.php'; | |
$_SERVER['SCRIPT_NAME'] = '/index-test.php'; | |
$_SERVER['REQUEST_URI'] = 'index-test.php'; | |
// change the following paths if necessary | |
$yiit=dirname(__FILE__).'/../../../vendor/yiisoft/yii/framework/yiit.php'; | |
require_once($yiit); | |
$main=require(dirname(__FILE__).'/../../../app/config/main.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
<?php | |
/** | |
* Runs the command. | |
* @param array $args the command-line arguments. | |
* @return integer the return code. | |
* @throws CException if the mysqldump binary cannot be located or if the actual dump fails. | |
*/ | |
public function run($args) | |
{ | |
list($action, $options, $args) = $this->resolveRequest($args); |
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 | |
namespace neam\envbootstrap; | |
class Identity | |
{ | |
static public function brand() | |
{ |
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
{ | |
"author": "", | |
"name": "", | |
"version": "0.0.0", | |
"dependencies": { | |
"xtend": "> 0.0.0", | |
"utils": "> 0.0.0" | |
}, | |
"devDependencies": {} | |
} |
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 | |
{ | |
// Hard code source language to en for now. TODO: Be able to choose and store source language | |
public $source_language = 'en'; | |
public function 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 | |
class Photo extends CActiveRecord { | |
/** | |
* | |
* Save a file into multiple formats on S3 | |
* @param unknown_type $filename | |
* @param unknown_type $id | |
* @param unknown_type $type | |
*/ |
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 | |
// Owner Behavior by thyseus <thyseus@gmail.com> | |
// Assuming a dataset is "owned" by a user, we need to set the id | |
// of the current logged in user when saving the dataset automatically. | |
// Optional, a "last updated by" column can save the user that last updated | |
// the dataset. The Owner will never be touched. | |
class OwnerBehavior extends CActiveRecordBehavior { |
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 | |
use Codeception\Util\Stub; | |
trait IndexActionTrait | |
{ | |
public function actionIndex() | |
{ | |
return "foo"; | |
} | |
} |
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 Y18n | |
{ | |
/** | |
* Wrapper for Yii::t() for static messages | |
*/ | |
public static function st($category, $message, $params = array(), $source = null, $language = null) | |
{ | |
$source = 'staticMessages'; |