Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Значения по-умолчанию для параметров компонента #3

Open
ngalkin91 opened this issue Nov 25, 2014 · 1 comment

Comments

@ngalkin91
Copy link
Contributor

Я думаю было бы удобно задавать значения по умолчанию прямо в массиве $checkParams с помощью ключа 'default', например:

protected $checkParams = array(
    'IBLOCK_TYPE' => array('type' => 'string'),
    'IBLOCK_ID' => array('type' => 'int'),
    'RELATED_MATERIALS_COUNT' => array('type' => 'int', 'default' => 3)
);
@niksamokhvalov
Copy link
Contributor

Будет реализовано во второй версии ББК.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants