Exemplo n.º 1
0
 public static function find()
 {
     return parent::find()->where([Transaction::tableName() . '.isdel' => 0]);
 }
Exemplo n.º 2
0
 public function getTags()
 {
     $models = Transaction::find()->all();
     $tags = [];
     foreach ($models as $m) {
         $ts = explode(",", $m->tags);
         foreach ($ts as $t) {
             if (!in_array($t, $tags)) {
                 $tags[$t] = $t;
             }
         }
     }
     return $tags;
 }