Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Binder
+ Граф наследования:Binder:

Открытые члены

 __construct ($instance, $method, $configuration=[])
 
 getInstance ()
 
 getMethod ()
 
 getConfiguration ()
 
 setConfiguration ($configuration)
 
 setAutoWiredParameters (array $parameters)
 
 appendAutoWiredParameter (Parameter $parameter)
 
 getAutoWiredParameters ()
 
 setSourcesParametersToMap (array $parameters)
 
 getSourcesParametersToMap ()
 
 appendSourcesParametersToMap (array $parameter)
 
 invoke ()
 
 getMethodParams ()
 
 setMethodParams (array $params)
 
 getArgs ()
 

Открытые статические члены

static buildForFunction ($callable, $configuration=[])
 
static buildForMethod ($instance, $method, $configuration=[])
 
static registerGlobalAutoWiredParameter (Parameter $parameter)
 
static unRegisterGlobalAutoWiredParameter (Parameter $parameter)
 

Открытые атрибуты

const STATUS_FOUND = true
 
const STATUS_NOT_FOUND = false
 

Защищенные члены

 constructValue (\ReflectionParameter $parameter, Parameter $autoWireParameter, Result $captureResult)
 

Подробное описание

См. определение в файле binder.php строка 7

Конструктор(ы)

◆ __construct()

__construct ( $instance,
$method,
$configuration = [] )

См. определение в файле binder.php строка 27

Методы

◆ appendAutoWiredParameter()

appendAutoWiredParameter ( Parameter $parameter)

См. определение в файле binder.php строка 118

◆ appendSourcesParametersToMap()

appendSourcesParametersToMap ( array $parameter)

См. определение в файле binder.php строка 185

◆ buildForFunction()

static buildForFunction ( $callable,
$configuration = [] )
staticfinal

См. определение в файле binder.php строка 44

◆ buildForMethod()

static buildForMethod ( $instance,
$method,
$configuration = [] )
staticfinal

См. определение в файле binder.php строка 49

◆ constructValue()

constructValue ( \ReflectionParameter $parameter,
Parameter $autoWireParameter,
Result $captureResult )
protected

Переопределяется в ControllerBinder.

См. определение в файле binder.php строка 320

◆ getArgs()

getArgs ( )
final

Returns list of method params which possible use in call_user_func_array().

Возвращает
array

См. определение в файле binder.php строка 261

◆ getAutoWiredParameters()

getAutoWiredParameters ( )
Возвращает
Parameter[]

См. определение в файле binder.php строка 168

◆ getConfiguration()

getConfiguration ( )
Возвращает
array

См. определение в файле binder.php строка 84

◆ getInstance()

getInstance ( )
Возвращает
mixed

См. определение в файле binder.php строка 68

◆ getMethod()

getMethod ( )
Возвращает
mixed

См. определение в файле binder.php строка 76

◆ getMethodParams()

getMethodParams ( )
final

Returns list of method params.

Возвращает
array

См. определение в файле binder.php строка 233

◆ getSourcesParametersToMap()

getSourcesParametersToMap ( )

См. определение в файле binder.php строка 180

◆ invoke()

invoke ( )
final

Invokes method with binded parameters. return @mixed

См. определение в файле binder.php строка 201

◆ registerGlobalAutoWiredParameter()

static registerGlobalAutoWiredParameter ( Parameter $parameter)
static

Register globally auto wired parameter. The method was added in backwards compatibility reason.

Аргументы
Parameter$parameter
Возвращает
void

См. определение в файле binder.php строка 130

◆ setAutoWiredParameters()

setAutoWiredParameters ( array $parameters)
Аргументы
Parameter[]$parameters
Возвращает
$this

См. определение в файле binder.php строка 106

◆ setConfiguration()

setConfiguration ( $configuration)
Аргументы
array$configuration
Возвращает
Binder

См. определение в файле binder.php строка 94

◆ setMethodParams()

setMethodParams ( array $params)
final

Sets list of method params.

Аргументы
array$paramsList of parameters.
Возвращает
$this

См. определение в файле binder.php строка 249

◆ setSourcesParametersToMap()

setSourcesParametersToMap ( array $parameters)

См. определение в файле binder.php строка 173

◆ unRegisterGlobalAutoWiredParameter()

static unRegisterGlobalAutoWiredParameter ( Parameter $parameter)
static
Аргументы
Parameter$parameter
Возвращает
void

См. определение в файле binder.php строка 147

Данные класса

◆ STATUS_FOUND

const STATUS_FOUND = true

См. определение в файле binder.php строка 9

◆ STATUS_NOT_FOUND

const STATUS_NOT_FOUND = false

См. определение в файле binder.php строка 10