-
Notifications
You must be signed in to change notification settings - Fork 35
icms_image_Object
Raimondas Rimkevičius edited this page Mar 9, 2020
·
1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!
An Image Object
- Class name: icms_image_Object
- Namespace:
- Parent class: icms_ipf_Object
public array $image_info = array()
Info of Image file (width, height, bits, mimetype)
- Visibility: public
public string $image_body
Stores image body
- Visibility: public
public int image_id
Image ID
- Visibility: public
public string image_name
Name
- Visibility: public
public string image_nicename
Nice name
- Visibility: public
public string image_mimetype
Mimetype
- Visibility: public
public int image_created
When was created?
- Visibility: public
public int image_display
Show be this image displayed on selection?
- Visibility: public
public int image_weight
Weight used for sorting for user
- Visibility: public
public string image_body
Image contents
- Visibility: public
public int imgcat_id
Image category ID
- Visibility: public
mixed icms_image_Object::__construct(mixed handler, mixed data)
Constructor
- Visibility: public
- handler mixed
- data mixed
array icms_image_Object::getInfo(string path, string type, bool ret)
Returns information
- Visibility: public
- path string - <p>The path to search through</p>
- type string - <p>The path type, url or other</p>
- ret bool - <p>Return the information or keep it stored</p>
mixed icms_image_Object::setVars(array var_arr, bool not_gpc)
Overide setVar for loading also image_body on the fly
- Visibility: public
- var_arr array - <p>Data</p>
- not_gpc bool - <p>Not GPC?</p>
mixed icms_image_Object::getVar(string name, string format)
Returns a specific variable for the object in a proper format
- Visibility: public
- name string - <p>Name of var</p>
- format string - <p>Format</p>
mixed icms_image_Object::setVar(string name, mixed value, array options)
Sets var value
- Visibility: public
- name string - <p>Var name</p>
- value mixed - <p>New value</p>
- options array - <p>Options to apply when settings values</p>