Answer the question
In order to leave comments, you need to log in
How to get parent resource id in modx revo (server file)?
Hello! There is this code in the component file:
class UserEvents2OrderHandler extends UserEventsOrderHandler implements UserEventsOrderInterface
{
/** @var modX $modx */
public $modx;
/** @var UserEvents $UserEvents */
public $UserEvents;
/** @var array $config */
public $config;
/** @var miniShop2 $miniShop2 */
public $miniShop2;
public $separator = ",";
/** @var array $order */
protected $order;
/**
* @param array $config
*/
function __construct(UserEvents & $UserEvents, array $config = [])
{
parent::__construct($UserEvents, $config);
if ($this->order["resource"] == 57) {
$this->order["time"] = '08:00,23:59';
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question