FUEL CMS User Guide : Version 1.5.2


Fuel Relationships Model Class

Fuel_relationships_model is used for managing FUEL users in the CMS.

This class extends the Base_module_model class.

Function Reference [+]

$this->fuel->relationships_model->find_by_candidate('$candidate_table', '$foreign_table', ['$candidate_key'=NULL], ['$return_method'=NULL])

Finds "candidate" relationship information.

Returns

array

Parameters

(string) $candidate_table The candidate table name
(string) $foreign_table The foreign table name
(int) $candidate_key The candidate ID (optional)
(string) $return_method Values can be object, array, query, auto (optional)

$this->fuel->relationships_model->find_by_foreign('$candidate_table', '$foreign_table', ['$foreign_key'=NULL], ['$return_method'=NULL])

Finds "foreign" relationship information.

Returns

array

Parameters

(string) $candidate_table The candidate table name
(string) $foreign_table The foreign table name
(int) $foreign_key The foreign ID (optional)
(string) $return_method Values can be object, array, query, auto


Fuel Relationship Model Class

This class extends the Base_module_record class.