Example #1
0
 public function create()
 {
     parent::_create(static::$FIELDS, 'ID');
 }
Example #2
0
 public function create($print = true)
 {
     if (static::NEXT_ID === 'NEXT') {
         return parent::_create_with_next_id(static::$FIELDS, '_sur', $print);
     } else {
         if (static::NEXT_ID === 'USER') {
             return parent::_create_with_id(static::$FIELDS, '_sur', $print);
         } else {
             return parent::_create(static::$FIELDS, '_sur', $print);
         }
     }
 }