Documentation

axacf extends Module
in package
Uses ConfigTraits

Table of Contents

Properties

$ACF_ID_GLOBAL_FIELD  : mixed
$ACF_OBJECTS  : mixed
$ACF_TYPES  : mixed

Methods

__call()  : mixed
Magic method PHP.
__construct()  : mixed
axacf constructor.
getContent()  : string
BackOffice module form
getVar()  : string
install()  : bool
uninstall()  : bool

Properties

$ACF_ID_GLOBAL_FIELD

public static mixed $ACF_ID_GLOBAL_FIELD = 1

$ACF_OBJECTS

public static mixed $ACF_OBJECTS = ['Attribute Group' => 'attributegroup', 'Axslide' => 'axSlide', 'Carrier' => 'carrier', 'Cart' => 'cart', 'Category' => 'category', 'Cms' => 'cms', 'Cms Category' => 'cms_category', 'Country' => 'country', 'Customer' => 'customer', 'Feature Value' => 'feature_value', 'Global' => 'global', 'Group' => 'group', 'Manufacturer' => 'manufacturer', 'Order' => 'order', 'Product' => 'product', 'Product Attribute' => 'product_attribute', 'Supplier' => 'supplier', 'Store' => 'store']

$ACF_TYPES

public static mixed $ACF_TYPES = ['Text' => 'text', 'Textarea' => 'textarea', 'Color' => 'color', 'File' => 'file', 'Switch' => 'switch', 'Categories' => 'categories', 'Date' => 'date', 'Datetime' => 'datetime', 'Radio' => 'radio', 'Checkbox' => 'checkbox', 'Select' => 'select']

Methods

__call()

Magic method PHP.

public __call(string $name, array<string|int, mixed> $arguments) : mixed

All hooks are declared in \axacf\Axome\Hook class

Parameters
$name : string
$arguments : array<string|int, mixed>

__construct()

axacf constructor.

public __construct() : mixed

getContent()

BackOffice module form

public getContent() : string
Return values
string

getVar()

public static getVar(string $name, string $objectType, int $idObject[, int $idLang = null ]) : string
Parameters
$name : string
$objectType : string
$idObject : int
$idLang : int = null
Tags
deprecated
  • if not necessary, do not use this method
  • perf issue

Get an Acf value in FO : {axacf::getVar('my_field_name', 'cms', $cms->id)}

throws
PrestaShopDatabaseException
Return values
string

install()

public install() : bool
Return values
bool

uninstall()

public uninstall() : bool
Return values
bool

        
On this page

Search results