Fix: Grant right to child classes to use Category methods
This commit is contained in:
parent
fecb6e49c6
commit
bfadd39e8c
@ -65,7 +65,7 @@ class Categorie extends CommonObject
|
|||||||
*
|
*
|
||||||
* @note This array should be remove in future, once previous constants are moved to the string value. Deprecated
|
* @note This array should be remove in future, once previous constants are moved to the string value. Deprecated
|
||||||
*/
|
*/
|
||||||
private $MAP_ID = array(
|
protected $MAP_ID = array(
|
||||||
'product' => 0,
|
'product' => 0,
|
||||||
'supplier' => 1,
|
'supplier' => 1,
|
||||||
'customer' => 2,
|
'customer' => 2,
|
||||||
@ -93,7 +93,7 @@ class Categorie extends CommonObject
|
|||||||
*
|
*
|
||||||
* @note Move to const array when PHP 5.6 will be our minimum target
|
* @note Move to const array when PHP 5.6 will be our minimum target
|
||||||
*/
|
*/
|
||||||
private $MAP_CAT_FK = array(
|
protected $MAP_CAT_FK = array(
|
||||||
'product' => 'product',
|
'product' => 'product',
|
||||||
'customer' => 'soc',
|
'customer' => 'soc',
|
||||||
'supplier' => 'soc',
|
'supplier' => 'soc',
|
||||||
@ -109,7 +109,7 @@ class Categorie extends CommonObject
|
|||||||
*
|
*
|
||||||
* @note Move to const array when PHP 5.6 will be our minimum target
|
* @note Move to const array when PHP 5.6 will be our minimum target
|
||||||
*/
|
*/
|
||||||
private $MAP_CAT_TABLE = array(
|
protected $MAP_CAT_TABLE = array(
|
||||||
'product' => 'product',
|
'product' => 'product',
|
||||||
'customer' => 'societe',
|
'customer' => 'societe',
|
||||||
'supplier' => 'fournisseur',
|
'supplier' => 'fournisseur',
|
||||||
@ -125,7 +125,7 @@ class Categorie extends CommonObject
|
|||||||
*
|
*
|
||||||
* @note Move to const array when PHP 5.6 will be our minimum target
|
* @note Move to const array when PHP 5.6 will be our minimum target
|
||||||
*/
|
*/
|
||||||
private $MAP_OBJ_CLASS = array(
|
protected $MAP_OBJ_CLASS = array(
|
||||||
'product' => 'Product',
|
'product' => 'Product',
|
||||||
'customer' => 'Societe',
|
'customer' => 'Societe',
|
||||||
'supplier' => 'Fournisseur',
|
'supplier' => 'Fournisseur',
|
||||||
@ -141,7 +141,7 @@ class Categorie extends CommonObject
|
|||||||
*
|
*
|
||||||
* @note Move to const array when PHP 5.6 will be our minimum target
|
* @note Move to const array when PHP 5.6 will be our minimum target
|
||||||
*/
|
*/
|
||||||
private $MAP_OBJ_TABLE = array(
|
protected $MAP_OBJ_TABLE = array(
|
||||||
'product' => 'product',
|
'product' => 'product',
|
||||||
'customer' => 'societe',
|
'customer' => 'societe',
|
||||||
'supplier' => 'societe',
|
'supplier' => 'societe',
|
||||||
@ -931,7 +931,7 @@ class Categorie extends CommonObject
|
|||||||
*
|
*
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
private function load_motherof()
|
protected function load_motherof()
|
||||||
{
|
{
|
||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user