dolibarr  13.0.2
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
Setup Class Reference
+ Inheritance diagram for Setup:
+ Collaboration diagram for Setup:

Public Member Functions

 __construct ()
 Constructor.
 
 getOrderingMethods ($sortfield="code", $sortorder= 'ASC', $limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of ordering methods. More...
 
 getOrderingOrigins ($sortfield="code", $sortorder= 'ASC', $limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of ordering origins. More...
 
 getPaymentTypes ($sortfield="code", $sortorder= 'ASC', $limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of payments types. More...
 
 getListOfStates ($sortfield="code_departement", $sortorder= 'ASC', $limit=100, $page=0, $filter= '', $sqlfilters= '')
 Get the list of states/provinces. More...
 
 getStateByID ($id)
 Get state by ID. More...
 
 getStateByCode ($code)
 Get state by Code. More...
 
 getListOfCountries ($sortfield="code", $sortorder= 'ASC', $limit=100, $page=0, $filter= '', $lang= '', $sqlfilters= '')
 Get the list of countries. More...
 
 getCountryByID ($id, $lang= '')
 Get country by ID. More...
 
 getCountryByCode ($code, $lang= '')
 Get country by Code. More...
 
 getCountryByISO ($iso, $lang= '')
 Get country by Iso. More...
 
 getAvailability ($sortfield="code", $sortorder= 'ASC', $limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of delivery times. More...
 
 getListOfShipmentMethods ($sortfield="rowid", $sortorder= 'ASC', $limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of shipment methods. More...
 
 getListOfEventTypes ($sortfield="code", $sortorder= 'ASC', $limit=100, $page=0, $type= '', $module= '', $active=1, $sqlfilters= '')
 Get the list of events types. More...
 
 getListOfExpenseReportsTypes ($sortfield="code", $sortorder= 'ASC', $limit=100, $page=0, $module= '', $active=1, $sqlfilters= '')
 Get the list of Expense Report types. More...
 
 getListOfContactTypes ($sortfield="code", $sortorder= 'ASC', $limit=100, $page=0, $type= '', $module= '', $active=1, $sqlfilters= '')
 Get the list of contacts types. More...
 
 getListOfCivilities ($sortfield="code", $sortorder= 'ASC', $limit=100, $page=0, $module= '', $active=1, $sqlfilters= '')
 Get the list of civilities. More...
 
 getListOfCurrencies ($multicurrency=0, $sortfield="code_iso", $sortorder= 'ASC', $limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of currencies. More...
 
 getListOfExtrafields ($sortfield="t.pos", $sortorder= 'ASC', $type= '', $sqlfilters= '')
 Get the list of extra fields. More...
 
 getListOfTowns ($sortfield="zip,town", $sortorder= 'ASC', $limit=100, $page=0, $zipcode= '', $town= '', $active=1, $sqlfilters= '')
 Get the list of towns. More...
 
 getPaymentTerms ($sortfield="sortorder", $sortorder= 'ASC', $limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of payments terms. More...
 
 getShippingModes ($limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of shipping methods. More...
 
 getListOfMeasuringUnits ($sortfield="rowid", $sortorder= 'ASC', $limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of measuring units. More...
 
 getListOfsocialNetworks ($sortfield="rowid", $sortorder= 'ASC', $limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of social networks. More...
 
 getTicketsCategories ($sortfield="code", $sortorder= 'ASC', $limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of tickets categories. More...
 
 getTicketsSeverities ($sortfield="code", $sortorder= 'ASC', $limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of tickets severity. More...
 
 getTicketsTypes ($sortfield="code", $sortorder= 'ASC', $limit=100, $page=0, $active=1, $sqlfilters= '')
 Get the list of tickets types. More...
 
 getCompany ()
 Get properties of company. More...
 
 getConf ($constantname)
 Get value of a setup variables. More...
 
 getCheckIntegrity ($target)
 Do a test of integrity for files and setup. More...
 
 getModules ()
 Get list of enabled modules. More...
 
- Public Member Functions inherited from DolibarrApi
 __construct ($db, $cachedir= '', $refreshCache=false)
 Constructor. More...
 

Protected Member Functions

 _cleanObjectDatas ($object)
 Clean sensible object datas. More...
 
- Protected Member Functions inherited from DolibarrApi
 _cleanObjectDatas ($object)
 Executed method when API is called without parameter. More...
 
 _checkFilters ($sqlfilters)
 Return if a $sqlfilters parameter is valid. More...
 

Private Member Functions

 _fetchCstate ($id, $code= '')
 Get state. More...
 
 _fetchCcountry ($id, $code= '', $iso= '', $lang= '')
 Get country. More...
 
 translateLabel ($object, $lang, $prefix= 'Country')
 Translate the name of the object to the given language. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from DolibarrApi
static _checkAccessToResource ($resource, $resource_id=0, $dbtablename= '', $feature2= '', $dbt_keyfield= 'fk_soc', $dbt_select= 'rowid')
 Check user access to a resource. More...
 
static _forge_criteria_callback ($matches)
 Function to forge a SQL criteria. More...
 

Detailed Description

Definition at line 37 of file api_setup.class.php.

Member Function Documentation

Setup::_cleanObjectDatas (   $object)
protected

Clean sensible object datas.

Parameters
Object$objectObject to clean
Returns
Object Object with cleaned properties

Definition at line 586 of file api_setup.class.php.

Referenced by _fetchCcountry(), _fetchCstate(), getCompany(), getListOfCountries(), getListOfStates(), and getModules().

Setup::_fetchCcountry (   $id,
  $code = '',
  $iso = '',
  $lang = '' 
)
private

Get country.

Parameters
int$idID of country
string$codeCode of country (2 characters)
string$isoISO of country (3 characters)
string$langCode of the language the name of the country must be translated to
Returns
array Array of cleaned object properties
Exceptions
RestException

Definition at line 499 of file api_setup.class.php.

References _cleanObjectDatas(), db, and translateLabel().

Referenced by getCountryByCode(), getCountryByID(), and getCountryByISO().

Setup::_fetchCstate (   $id,
  $code = '' 
)
private

Get state.

Parameters
int$idID of state
string$codeCode of state
Returns
array Array of cleaned object properties
Exceptions
RestException

Definition at line 473 of file api_setup.class.php.

References _cleanObjectDatas(), and db.

Referenced by getStateByCode(), and getStateByID().

Setup::getAvailability (   $sortfield = "code",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of delivery times.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number { 0}
int$activeDelivery times is active or not { 0} { 1}
string$sqlfiltersSQL criteria to filter with.

GET dictionary/availability

Returns
array [List of availability]
Exceptions
RestException400

Definition at line 532 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getCheckIntegrity (   $target)

Do a test of integrity for files and setup.

Parameters
string$targetCan be 'local' or 'default' or Url of the signatures file to use for the test. Must be reachable by the tested Dolibarr.
Returns
array Result of file and setup integrity check

GET checkintegrity

Exceptions
RestException403 Forbidden
RestException404 Signature file not found
RestException500 Technical error
RestException503 Forbidden

Definition at line 1686 of file api_setup.class.php.

References dol_dir_list(), dol_filemtime(), dol_filesize(), dol_is_file(), dol_sort_array(), getFilesUpdated(), GETPOST(), getURLContent(), and load_fiche_titre().

Setup::getCompany ( )

Get properties of company.

GET /company

Returns
array|mixed Mysoc object
Exceptions
RestException403 Forbidden

Definition at line 1589 of file api_setup.class.php.

References _cleanObjectDatas().

Setup::getConf (   $constantname)

Get value of a setup variables.

Note that conf variables that stores security key or password hashes can't be loaded with API.

Parameters
string$constantnameName of conf variable to get
Returns
array|mixed Data without useless information

GET conf/{constantname}

Exceptions
RestException403 Forbidden
RestException404 Error Bad or unknown value for constantname

Definition at line 1654 of file api_setup.class.php.

References isASecretKey().

Setup::getCountryByCode (   $code,
  $lang = '' 
)

Get country by Code.

Parameters
string$codeCode of country (2 characters)
string$langCode of the language the name of the country must be translated to
Returns
array Array of cleaned object properties

GET dictionary/countries/byCode/{code}

Exceptions
RestException

Definition at line 442 of file api_setup.class.php.

References _fetchCcountry().

Setup::getCountryByID (   $id,
  $lang = '' 
)

Get country by ID.

Parameters
int$idID of country
string$langCode of the language the name of the country must be translated to
Returns
array Array of cleaned object properties

GET dictionary/countries/{id}

Exceptions
RestException

Definition at line 425 of file api_setup.class.php.

References _fetchCcountry().

Setup::getCountryByISO (   $iso,
  $lang = '' 
)

Get country by Iso.

Parameters
string$isoISO of country (3 characters)
string$langCode of the language the name of the country must be translated to
Returns
array Array of cleaned object properties

GET dictionary/countries/byISO/{iso}

Exceptions
RestException

Definition at line 459 of file api_setup.class.php.

References _fetchCcountry().

Setup::getListOfCivilities (   $sortfield = "code",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $module = '',
  $active = 1,
  $sqlfilters = '' 
)

Get the list of civilities.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
string$moduleTo filter on module events
int$activeCivility is active or not { 0} { 1}
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of civility types

GET dictionary/civilities

Exceptions
RestException

Definition at line 897 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getListOfContactTypes (   $sortfield = "code",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $type = '',
  $module = '',
  $active = 1,
  $sqlfilters = '' 
)

Get the list of contacts types.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
string$typeTo filter on type of contact
string$moduleTo filter on module contacts
int$activeContact's type is active or not { 0} { 1}
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of Contacts types

GET dictionary/contact_types

Exceptions
RestException

Definition at line 832 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getListOfCountries (   $sortfield = "code",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $filter = '',
  $lang = '',
  $sqlfilters = '' 
)

Get the list of countries.

The names of the countries will be translated to the given language if the $lang parameter is provided. The value of $lang must be a language code supported by Dolibarr, for example 'en_US' or 'fr_FR'. The returned list is sorted by country ID.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
string$filterTo filter the countries by name
string$langCode of the language the label of the countries must be translated to
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of countries

GET dictionary/countries

Exceptions
RestException

Definition at line 360 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), _cleanObjectDatas(), db, and translateLabel().

Setup::getListOfCurrencies (   $multicurrency = 0,
  $sortfield = "code_iso",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of currencies.

Parameters
int$multicurrencyMulticurrency rates (0: no multicurrency, 1: last rate, 2: all rates) { 0} { 2}
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
int$activePayment term is active or not { 0} { 1}
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of currencies

GET dictionary/currencies

Exceptions
RestException

Definition at line 959 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getListOfEventTypes (   $sortfield = "code",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $type = '',
  $module = '',
  $active = 1,
  $sqlfilters = '' 
)

Get the list of events types.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
string$typeTo filter on type of event
string$moduleTo filter on module events
int$activeEvent's type is active or not { 0} { 1}
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of events types

GET dictionary/event_types

Exceptions
RestException

Definition at line 702 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getListOfExpenseReportsTypes (   $sortfield = "code",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $module = '',
  $active = 1,
  $sqlfilters = '' 
)

Get the list of Expense Report types.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
string$moduleTo filter on module
int$activeEvent's type is active or not { 0} { 1}
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of expense report types

GET dictionary/expensereport_types

Exceptions
RestException

Definition at line 768 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getListOfExtrafields (   $sortfield = "t.pos",
  $sortorder = 'ASC',
  $type = '',
  $sqlfilters = '' 
)

Get the list of extra fields.

Parameters
string$sortfieldSort field
string$sortorderSort order
string$typeType of element ('adherent', 'commande', 'thirdparty', 'facture', 'propal', 'product', ...)
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.label:like:'SO-%')"
Returns
array List of extra fields

GET extrafields

Exceptions
RestException

Definition at line 1028 of file api_setup.class.php.

References $resql, DolibarrApi\_checkFilters(), and db.

Setup::getListOfMeasuringUnits (   $sortfield = "rowid",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of measuring units.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
int$activeMeasuring unit is active or not { 0} { 1}
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of measuring unit

GET dictionary/units

Exceptions
RestException

Definition at line 1295 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getListOfShipmentMethods (   $sortfield = "rowid",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of shipment methods.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
int$activePayment term is active or not { 0} { 1}
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of shipment methods

GET dictionary/shipment_methods

Exceptions
RestException

Definition at line 643 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getListOfsocialNetworks (   $sortfield = "rowid",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of social networks.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
int$activeSocial network is active or not { 0} { 1}
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of social networks

GET dictionary/socialnetworks

Exceptions
RestException

Definition at line 1354 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getListOfStates (   $sortfield = "code_departement",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $filter = '',
  $sqlfilters = '' 
)

Get the list of states/provinces.

The names of the states will be translated to the given language if the $lang parameter is provided. The value of $lang must be a language code supported by Dolibarr, for example 'en_US' or 'fr_FR'. The returned list is sorted by state ID.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
string$filterTo filter the countries by name
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of countries

GET dictionary/states

Exceptions
RestException

Definition at line 260 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), _cleanObjectDatas(), and db.

Setup::getListOfTowns (   $sortfield = "zip,town",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $zipcode = '',
  $town = '',
  $active = 1,
  $sqlfilters = '' 
)

Get the list of towns.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
string$zipcodeTo filter on zipcode
string$townTo filter on city name
int$activePayment term is active or not { 0} { 1}
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of towns

GET dictionary/towns

Exceptions
RestException

Definition at line 1109 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getModules ( )

Get list of enabled modules.

GET /modules

Returns
array|mixed Data without useless information
Exceptions
RestException403 Forbidden

Definition at line 1984 of file api_setup.class.php.

References _cleanObjectDatas().

Setup::getOrderingMethods (   $sortfield = "code",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of ordering methods.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number { 0}
int$activePayment type is active or not { 0} { 1}
string$sqlfiltersSQL criteria to filter with. Syntax example "(t.code:=:'OrderByWWW')"

GET dictionary/ordering_methods

Returns
array [List of ordering methods]
Exceptions
RestException400

Definition at line 66 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getOrderingOrigins (   $sortfield = "code",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of ordering origins.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number { 0}
int$activePayment type is active or not { 0} { 1}
string$sqlfiltersSQL criteria to filter with. Syntax example "(t.code:=:'OrderByWWW')"

GET dictionary/ordering_origins

Returns
array [List of ordering reasons]
Exceptions
RestException400

Definition at line 129 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getPaymentTerms (   $sortfield = "sortorder",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of payments terms.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number { 0}
int$activePayment term is active or not { 0} { 1}
string$sqlfiltersSQL criteria to filter. Syntax example "(t.code:=:'CHQ')"

GET dictionary/payment_terms

Returns
array List of payment terms
Exceptions
RestException400

Definition at line 1174 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getPaymentTypes (   $sortfield = "code",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of payments types.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number { 0}
int$activePayment type is active or not { 0} { 1}
string$sqlfiltersSQL criteria to filter with. Syntax example "(t.code:=:'CHQ')"

GET dictionary/payment_types

Returns
array [List of payment types]
Exceptions
RestException400

Definition at line 192 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getShippingModes (   $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of shipping methods.

Parameters
int$limitNumber of items per page
int$pagePage number { 0}
int$activeShipping methodsm is active or not { 0} { 1}
string$sqlfiltersSQL criteria to filter. Syntax example "(t.code:=:'CHQ')"

GET dictionary/shipping_methods

Returns
array List of shipping methods
Exceptions
RestException400

Definition at line 1236 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getStateByCode (   $code)

Get state by Code.

Parameters
string$codeCode of state
Returns
array Array of cleaned object properties

GET dictionary/states/byCode/{code}

Exceptions
RestException

Definition at line 334 of file api_setup.class.php.

References _fetchCstate().

Setup::getStateByID (   $id)

Get state by ID.

Parameters
int$idID of state
Returns
array Array of cleaned object properties

GET dictionary/states/{id}

Exceptions
RestException

Definition at line 319 of file api_setup.class.php.

References _fetchCstate().

Setup::getTicketsCategories (   $sortfield = "code",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of tickets categories.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
int$activePayment term is active or not { 0} { 1}
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of ticket categories

GET dictionary/ticket_categories

Exceptions
RestException

Definition at line 1419 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getTicketsSeverities (   $sortfield = "code",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of tickets severity.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
int$activePayment term is active or not { 0} { 1}
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of ticket severities

GET dictionary/ticket_severities

Exceptions
RestException

Definition at line 1477 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::getTicketsTypes (   $sortfield = "code",
  $sortorder = 'ASC',
  $limit = 100,
  $page = 0,
  $active = 1,
  $sqlfilters = '' 
)

Get the list of tickets types.

Parameters
string$sortfieldSort field
string$sortorderSort order
int$limitNumber of items per page
int$pagePage number (starting from zero)
int$activePayment term is active or not { 0} { 1}
string$sqlfiltersOther criteria to filter answers separated by a comma. Syntax example "(t.code:like:'A%') and (t.active:>=:0)"
Returns
array List of ticket types

GET dictionary/ticket_types

Exceptions
RestException

Definition at line 1535 of file api_setup.class.php.

References DolibarrApi\_checkFilters(), and db.

Setup::translateLabel (   $object,
  $lang,
  $prefix = 'Country' 
)
private

Translate the name of the object to the given language.

Parameters
object$objectObject with label to translate
string$langCode of the language the name of the object must be translated to
string$prefixPrefix for translation key
Returns
void

Definition at line 606 of file api_setup.class.php.

Referenced by _fetchCcountry(), and getListOfCountries().


The documentation for this class was generated from the following file: