Open rexmortus opened 11 years ago
For extra win:
<?php
public function properties()
{
return array(
'isloggedin' => new Moa\Types\BooleanField(array('required' => true, 'default' => function() {
return Ergo::getActiveUser(); // never actually do this
}))
}
}
Alternatively, I could implement my own initializer, which probably makes more sense anyways.
E.g.