Entity_Post::fields PHP Method

fields() public static method

public static fields ( )
    public static function fields()
    {
        return array('id' => array('type' => 'int', 'primary' => true, 'serial' => true), 'title' => array('type' => 'string', 'required' => true), 'body' => array('type' => 'text', 'required' => true), 'status' => array('type' => 'int', 'default' => 0, 'index' => true), 'date_created' => array('type' => 'datetime'), 'data' => array('type' => 'serialized'), 'author_id' => array('type' => 'int', 'required' => true));
    }