예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * Adds the methods `printInfo()` and `showLinks()` to fRecordSet
  *
  * @return void
  */
 public static function extend()
 {
     fORM::registerRecordSetMethod('printInfo', self::printRecordSetInfo);
     fORM::registerRecordSetMethod('showLinks', self::showRecordSetLinks);
 }