Main properites of a link is fully described here. The others are used in view and other part of the system.
URL of the page. This URL must begin with the protocol (such as http) and end with a trailing slash, if your web server requires it. This value must be less than 2,048 characters.
The date of last modification of the file. This date should be in W3C Datetime format. This format allows you to omit the time portion, if desired, and use YYYY-MM-DD.
How frequently the page is likely to change. This value provides general information to search engines and may not correlate exactly to how often they crawl the page. Valid values are:
The value "always" should be used to describe documents that change each time they are accessed. The value "never" should be used to describe archived URLs.
The priority of this URL relative to other URLs on your site. Valid values range from 0.0 to 1.0. This value does not affect how your pages are ompared to pages on other sites—it only lets the search engines know which pages you deem most important for the crawlers. The default priority of a page is 0.5.
Store the attributes of the model.
To minimize pollution of the property space, all the attributes are stored in this array.
Description of the keys: 'multitenant: Determines possibility of define the model in each tenant separately 'mapped': Determines that the model is a mapped model of another model. A mapped model have not a separate table. 'table': The table in which the model is stored. 'model': The name of the model. 'cols': The definition of the columns. 'idx': The definition of the indexes. 'views': The definition of the views. 'verbose': The verbose name of the model.
getOne( $p = array()) : \Pluf_Model|null
Get one item.
The parameters are the same as the ones of the getList method, but, the return value is either:
$m = Pluf::factory(My_Model::class)->getOne(array('filter' => 'id=1'));
$m = Pluf::factory(My_Model::class)->getOne('id=1');
getList( $p = array()) : \ArrayObject
یک فهرست از موجودیتها را تعیین میکند
The filter should be used only for simple filtering. If you want a complex query, you should create a new view. Both filter and order accept an array or a string in case of multiple parameters: Filter: array('col1=toto', 'col2=titi') will be used in a AND query or simply 'col1=toto' Order: array('col1 ASC', 'col2 DESC') or 'col1 ASC'
This is modelled on the DB_Table pear module interface.
of items or through an exception if database failure
create( $raw = false) : boolean
Create the model into the database.
If raw insert is requested, the preSave/postSave methods are not called and the current id of the object is directly used. This is particularily used when doing backup/restore of data.