Прошу помочь. Чтот запнулся с пониманием массивов. Есть запрос:
$q = $modx->newQuery('modContext');
$where = array(
'modContext.key:in' => array('web', 'mgr'),
'cs.value:!=' => NULL,
'cs.value:!=' => '',
);
$q->select(array(
'modContext.key',
'cs.key as setting_key',
'cs.value'
));
$q->innerJoin('modContextSetting', 'cs', 'cs.context_key = modContext.key');
$q->where($where);
здесь where присваивается за один раз. Как бы разбить это действие на несколько. Типа:
$where['modContext.key:in'] => 'web';
$where['modContext.key:in'] => 'mgr';
$where['cs.value:!='] => NULL;
$where['cs.value:!='] => '';
Помогите, пожалуйста.