|
@@ -28,10 +28,24 @@ include_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
|
|
*/
|
|
|
class ActionsCardService
|
|
|
{
|
|
|
+ /**
|
|
|
+ * @var DoliDB Database handler.
|
|
|
+ */
|
|
|
+ public $db;
|
|
|
+
|
|
|
+ public $dirmodule;
|
|
|
public $targetmodule;
|
|
|
public $canvas;
|
|
|
public $card;
|
|
|
|
|
|
+ public $name;
|
|
|
+ public $definition;
|
|
|
+ public $fieldListName;
|
|
|
+ public $next_prev_filter;
|
|
|
+
|
|
|
+ //! Object container
|
|
|
+ public $object;
|
|
|
+
|
|
|
//! Template container
|
|
|
public $tpl = array();
|
|
|
|
|
@@ -45,18 +59,30 @@ class ActionsCardService
|
|
|
public $price;
|
|
|
public $price_min;
|
|
|
|
|
|
+ /**
|
|
|
+ * @var string Error code (or message)
|
|
|
+ */
|
|
|
+ public $error = '';
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @var string[] Error codes (or messages)
|
|
|
+ */
|
|
|
+ public $errors = array();
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* Constructor
|
|
|
*
|
|
|
- * @param DoliDB $db Handler acces base de donnees
|
|
|
- * @param string $targetmodule Name of directory of module where canvas is stored
|
|
|
+ * @param DoliDB $db Database handler
|
|
|
+ * @param string $dirmodule Name of directory of module
|
|
|
+ * @param string $targetmodule Name of directory where canvas is stored
|
|
|
* @param string $canvas Name of canvas
|
|
|
* @param string $card Name of tab (sub-canvas)
|
|
|
*/
|
|
|
- public function __construct($db, $targetmodule, $canvas, $card)
|
|
|
+ public function __construct($db, $dirmodule, $targetmodule, $canvas, $card)
|
|
|
{
|
|
|
$this->db = $db;
|
|
|
+ $this->dirmodule = $dirmodule;
|
|
|
$this->targetmodule = $targetmodule;
|
|
|
$this->canvas = $canvas;
|
|
|
$this->card = $card;
|