TAILIEUCHUNG - Mastering Joomla! 1.5 Extension and Framework Development phần 9

sau đó tạo ra một người dùng mới sẽ không được phép. Nếu đây là trường hợp, và một nỗ lực được thực hiện để tiết kiệm một người dùng mới, phương pháp vẫn sẽ trở lại đúng sự thật. Trước khi tiết kiệm cho người sử dụng một số kiểm tra sanity được thực hiện, | Appendix save updateOnly boolean false boolean Saves the user to the database. If updateOnly is true then the creation of a new user will not be permitted. If this is the case and an attempt is made to save a new user the method will still return true. Before saving the user a number of sanity checks are made including data validation and authorization verification. If any of these fail then the method will return false. Parameters updateOnly Only save if it is an existing user Returns true on success setLastVisit timestamp string boolean Updates the user s database record last visit date note that this does not update the lastvisitDate property of the object. Parameters timestamp Timestamp for the last visit Returns true on success setParam key string value mixed mixed Sets the value of a user s parameter. Parameters key Name of the parameter value Value of the parameter Returns Previous value of the parameter setParameters data string path string null void Loads an INI parameter string. path if specified is the path to an XML file defining the parameters if not specified the default user XML file is used. Parameters data INI parameter string path XML parameter definition file path bind from mixed ignore string boolean Used by the bind and load methods to bind data to the object. from must be an object or associative array. ignore defines a list of key property names that should not be bound to the object. Parameters from Object or associative array to bind ignore Properties and keys to ignore Returns true on success setError msg string void Appends msg to the object s error log. Parameters msg Error message 371 Appendix JModel abstract extends JObject Base class for model classes that use the MVC implementation. For more information about JModel refer to Chapter 4. Properties _db JDatabase Reference to the database connection _name string Model name _state JObject State of the object Constructors __construct config array array JModel Builds a new JModel object. .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.