Example #1
0
 function get_others()
 {
     if ($this->others === NULL) {
         $t = $this->tense;
         if (ISPICK($t)) {
             $t = $t->rand();
         }
         $this->others = make_chart($this->word, [[$t], ["singular", "plural"], ["person-1", "person-2", "person-3"], ["active", "passive"], [FALSE]], ["infinitive/imperfect", "infinitive/future-perfect", "infinitive/pluperfect", "subjunctive/future", "subjunctive/future-perfect", "infinitive/future/passive"], "the " . format_path($t), NULL, $this->translation);
     }
     return $this->others;
 }
Example #2
0
function dump_pick_db($pick_db)
{
    $_ = [];
    foreach ($pick_db as $k => $p) {
        if (is_scalar($p)) {
            $_[$k] = $p;
        } elseif (ISPICK($p)) {
            $_[$k] = "PICK(" . $p->key . "," . $p->id . "," . $p->n . "," . $p->rand . ")";
        }
    }
    return var_export($_, 1);
}