| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/actindo/classes/Service/ |
Upload File : |
<?php
/**
* Class Actindo_Connector_Service_Category
* actindo Faktura/WWS connector
* @package actindo
* @author Patrick Prasse <patrick.prasse@actindo.com>
*
* @version $Revision: 901 $
* @copyright Copyright© Actindo AG 2018, <support@actindo.com>, Carl-Zeiss-Ring 15 - 85737 Ismaning
* @license http://opensource.org/licenses/GPL-2.0 GNU Public License
*/
class Actindo_Connector_Service_Category
{
/**
* function get categories
* @param string $params
* @return array
*/
public function get($params)
{
return categories_get(array('params' => $params));
}
/**
* performs operations on single categories or the category tree
* technical info about param $data: the type should be just "struct", but when $action is "delete" actindo spuriously passes the type "array"
* @param string $params
* @param string $action known actions are: add, delete, textchange (rename category), append (move category), above (move category), below (move category)
* @param int $categoryID the category id to perform operations on
* @param int $parentID the parent id of the category to perform operations on
* @param int $referenceID this does something aswell
* @param struct|array $data data required to perform the called action
* @return struct
*/
public function action($params, $action, $categoryID, $parentID, $referenceID, $data)
{
return category_action(array(
'params' => $params,
'action' => $action,
'categoryID' => $categoryID,
'parentID' => $parentID,
'referenceID' => $referenceID,
'data' => $data)
);
}
}