/** * Adds the method `toJSON()` to fActiveRecord and fRecordSet instances * * @return void */ public static function extend() { fORM::registerReflectCallback('*', self::reflect); fORM::registerActiveRecordMethod('*', 'toJSON', self::toJSON); fORM::registerRecordSetMethod('toJSON', self::toJSONRecordSet); }
/** * Adds the methods `printInfo()` and `showLinks()` to fRecordSet * * @return void */ public static function extend() { fORM::registerRecordSetMethod('printInfo', self::printRecordSetInfo); fORM::registerRecordSetMethod('showLinks', self::showRecordSetLinks); }