Merge pull request #9822 from bafbes/abb80034
NEW Grant right to child classes to use Category methods
This commit is contained in:
commit
eefcf4b708
@ -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,
|
||||||
@ -97,7 +97,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',
|
||||||
@ -114,7 +114,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',
|
||||||
@ -131,7 +131,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',
|
||||||
@ -148,7 +148,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',
|
||||||
@ -944,7 +944,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