Skip to content

Instantly share code, notes, and snippets.

View agungsijawir's full-sized avatar
😊
Slow but sure coming back to live

Agung Andika agungsijawir

😊
Slow but sure coming back to live
View GitHub Profile
@agungsijawir
agungsijawir / ctimer.php
Created August 31, 2016 08:59 — forked from petskratt/.gitignore
Group file change times by inode ctime
<?php
/**
* Group file change times by inode ctime
* User: petskratt (peeter@zone.ee)
* 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
<?php
class Cart extends \yii\base\Object {
/**
* @var integer
*/
public $id;
/**
<?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);
<?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