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 | |
/** | |
* @version 1.0 | |
* @author Rasmus Schultz <http://blog.mindplay.dk/> | |
* @license LGPL3 <http://www.gnu.org/licenses/lgpl-3.0.txt> | |
*/ | |
/** | |
* Helper-class to build SQL queries that calculate the geographical distance |
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 | |
$c = new CDbCriteria(); | |
Hoge::model()->findAll($c); | |
// SELECT * FROM `hoge` `t` | |
$c = new CDbCriteria(); | |
$c->addSearchCondition('t.fuga', null); // null, false, ''などは無視されるようです | |
Hoge::model()->findAll($c); |
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 Cart extends \yii\base\Object { | |
/** | |
* @var integer | |
*/ | |
public $id; | |
/** |
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 | |
/** | |
* Group file change times by inode ctime | |
* User: petskratt ([email protected]) | |
* Date: 23.08.2016 | |
* Time: 13:245 | |
* v.1.2 | |
* - fixed json creation | |
* - added possibility to read from json files | |
* - this "quick hack" is becoming quite messy - but it works and saves lives, so refactoring can wait |