Lines Matching refs:object

1322  * @param object|null $object   The object to get the constant from
1326 function twig_constant($constant, $object = null) argument
1328 if (null !== $object) {
1329 $constant = \get_class($object).'::'.$constant;
1339 * @param object|null $object The object to get the constant from
1343 function twig_constant_is_defined($constant, $object = null) argument
1345 if (null !== $object) {
1346 $constant = \get_class($object).'::'.$constant;
1386 * @param mixed $object The object or array from where to get the item
1400 function twig_get_attribute(Environment $env, Source $source, $object, $item, array $arguments = []… argument
1406 … (((\is_array($object) || $object instanceof \ArrayObject) && (isset($object[$arrayItem]) || \arra…
1407 || ($object instanceof ArrayAccess && isset($object[$arrayItem]))
1413 return $object[$arrayItem];
1416 if (/* Template::ARRAY_CALL */ 'array' === $type || !\is_object($object)) {
1425 if ($object instanceof ArrayAccess) {
1426 …y "%s" in object with ArrayAccess of class "%s" does not exist.', $arrayItem, \get_class($object));
1427 } elseif (\is_object($object)) {
1428 … object of class "%s" that does not implement ArrayAccess interface.', $item, \get_class($object));
1429 } elseif (\is_array($object)) {
1430 if (empty($object)) {
1433 …ey "%s" for array with keys "%s" does not exist.', $arrayItem, implode(', ', array_keys($object)));
1436 if (null === $object) {
1439 …f('Impossible to access a key ("%s") on a %s variable ("%s").', $item, \gettype($object), $object);
1441 } elseif (null === $object) {
1444 …ssible to access an attribute ("%s") on a %s variable ("%s").', $item, \gettype($object), $object);
1451 if (!\is_object($object)) {
1460 if (null === $object) {
1462 } elseif (\is_array($object)) {
1465 …Impossible to invoke a method ("%s") on a %s variable ("%s").', $item, \gettype($object), $object);
1471 if ($object instanceof Template) {
1477 if (isset($object->$item) || \array_key_exists((string) $item, (array) $object)) {
1483 …$env->getExtension(SandboxExtension::class)->checkPropertyAllowed($object, $item, $lineno, $source…
1486 return $object->$item;
1492 $class = \get_class($object);
1497 $methods = get_class_methods($object);
1560 …$env->getExtension(SandboxExtension::class)->checkMethodAllowed($object, $method, $lineno, $source…
1566 $ret = $object->$method(...$arguments);