This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
local:shop:structure:classes:shopobject [2016/12/28 23:43] admin |
local:shop:structure:classes:shopobject [2024/05/14 15:39] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <html><!-- nomoodle --></html>{{ :logo-apl.png?nolink |}}<html><!-- /nomoodle --></html> | ||
===== The ShopObject Class ===== | ===== The ShopObject Class ===== | ||
- | ===== Moodle INtegrated Shop : Structural elements ===== | + | ==== Moodle Integrated Shop : Structural elements==== |
The ShopObject is the base class for all other functional classes of the Moodle Shop. It will provide a basic API for any othe robject and an abstraction layer to the DB storage. | The ShopObject is the base class for all other functional classes of the Moodle Shop. It will provide a basic API for any othe robject and an abstraction layer to the DB storage. | ||
Line 6: | Line 7: | ||
Any object based on this class and telling which DB table it uses will provide a full internal mechanism to deshydrate and rehydrate data from database. | Any object based on this class and telling which DB table it uses will provide a full internal mechanism to deshydrate and rehydrate data from database. | ||
- | ==== Méthodes ==== | + | ==== Methods ==== |
- | === Constructeur __construct === | + | === Constructor __construct === |
@param mixed $recordorid | @param mixed $recordorid | ||
@param string $recordtable | @param string $recordtable | ||
- | === Getters et Setters === | + | === Getters and Setters === |
=== save() === | === save() === | ||
- | Sauvegarde l'état courant de l'objet en base de données. | + | Save the current state of the object to DB. |
- | == delete() === | + | === delete() === |
- | Supprime le stockage persistant de l'objet en base de données. | + | Deletes the underlying record. |
- | [[:local:shop:structure|Revenir au sommaire de la structure]] | + | |
+ | ----- | ||
+ | <html><!-- nomoodle --></html> | ||
+ | |||
+ | [[:local:shop:structure|Back to the Moodle Shop structure documentation summary]] - [[local:shop:userguide:salesadmin|Go to Configuration and implementation of a commercial offer]] - [[:local:shop|Back to Local Shop componant ]] - [[:start|Back to catalogue]] | ||
+ | |||
+ | <html><!-- /nomoodle --></html> |