Class: Lumberg::Cpanel::Branding
- Defined in:
- lib/lumberg/cpanel/branding.rb
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from Whm::Base
Instance Method Summary collapse
-
#list_icons(options = {}) ⇒ Object
Public: Retrieve a list of icons within the x3 interface.
-
#list_image_types(options = {}) ⇒ Object
Public: Get list of branding image types.
-
#list_object_types(options = {}) ⇒ Object
Public: Get list of branding object types.
-
#list_pkgs(options = {}) ⇒ Object
Public: Get list of branding packages.
-
#list_sprites(options = {}) ⇒ Object
Public: Get URL locations for specific sprites.
Methods inherited from Base
api_module, #initialize, #perform_request
Methods inherited from Whm::Base
Constructor Details
This class inherits a constructor from Lumberg::Cpanel::Base
Instance Method Details
#list_icons(options = {}) ⇒ Object
Public: Retrieve a list of icons within the x3 interface.
options - Hash options for API call params (default: {}):
:nvarglist - String parameter allows you to specify the order in
which you wish to have groups returned, separated by
pipes, e.g., "mail|files|domains|logs". This is the
last filter on the data and is stored in your
xmaingroupsorder NVDATA variable (optional).
Returns Hash API response.
60 61 62 63 64 |
# File 'lib/lumberg/cpanel/branding.rb', line 60 def list_icons( = {}) perform_request({ api_function: "applist" }.merge()) end |
#list_image_types(options = {}) ⇒ Object
Public: Get list of branding image types.
options - Hash options for API call params (default: {}):
Returns Hash API response.
82 83 84 85 86 |
# File 'lib/lumberg/cpanel/branding.rb', line 82 def list_image_types( = {}) perform_request({ api_function: "listimgtypes" }.merge()) end |
#list_object_types(options = {}) ⇒ Object
Public: Get list of branding object types.
options - Hash options for API call params (default: {}):
Returns Hash API response.
71 72 73 74 75 |
# File 'lib/lumberg/cpanel/branding.rb', line 71 def list_object_types( = {}) perform_request({ api_function: "listobjecttypes" }.merge()) end |
#list_pkgs(options = {}) ⇒ Object
Public: Get list of branding packages.
options - Hash options for API call params (default: {}):
:onlyshowyours - Return only packages that the user owns?
String "1" or "0" (optional).
:showroot - Only return system branding packages?
String "1" or "0" (optional).
:skipglobal - Only return customized branding packages?
String "1" or "0" (optional).
:skiphidden - Skip branding packages owned by the user?
String "1" or "0" (optional).
Returns Hash API response.
17 18 19 20 21 |
# File 'lib/lumberg/cpanel/branding.rb', line 17 def list_pkgs( = {}) perform_request({ api_function: "showpkgs" }.merge()) end |
#list_sprites(options = {}) ⇒ Object
Public: Get URL locations for specific sprites.
options - Hash options for API call params (default: {}):
:img - String branding object label for the image you want to
retrieve.
:imgtype - String branding image type you want to retrieve, e.g.,
"icon" or "heading".
:method - String specification for returned value options.
Acceptable values are: "only_filetype_gif",
"skip_filetype_gif", "snap_to_smallest_width", and
"scale_60percent".
:subtype - String branding image subtype, e.g., "img", "bg",
"compleximg".
:image - String parameter allows you to force appropriate
output by setting it to "heading" (optional).
:skipgroups - String parameter allows you to specify whether or not
to include "img" values that begin with "group_" in
the output. "1" indicates that you wish to skip "img"
values that begin with "group_" (optional).
Returns Hash API response.
44 45 46 47 48 |
# File 'lib/lumberg/cpanel/branding.rb', line 44 def list_sprites( = {}) perform_request({ api_function: "spritelist" }.merge()) end |