Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 109: | Line 109: | ||
:Result: Object Library, found a library. | :Result: Object Library, found a library. | ||
=== | === Object Library === | ||
Through this object provides access to library records. You can work with the current library - the lib () or to any other library database - libByName () . In addition to the functions of receiving records this object provides the ability to create a new record. | |||
==== | ====Methods ==== | ||
=====entries()===== | ===== entries() ===== | ||
: | :Get all the recording library. | ||
: | :Result: Array [Entry] array of records. Entries are sorted by time of their creation - from newest to oldest. | ||
=====find(query)===== | ===== find(query) ===== | ||
: | :Search for entries in the library field values. Search similar search through the interface of the program. | ||
: | :Parameters: query — the search string. | ||
: | :Result: Array [Entry] array of records found. Entries are sorted by time of their creation - from newest to oldest. | ||
=====findByKey(name)===== | ===== findByKey(name) ===== | ||
: | :Records search by the name of the library. For the library must be enabled for unique names. | ||
: | :Parameters: name — the name of the recording. | ||
: | :Result: Object Entry. | ||
=====create(values)===== | =====create(values)===== |