オブジェクトのプロパティをアクセス範囲無視して取得します。

@param unknown_type $object
@param unknown_type $name
333552
public static function ForceGetProperty ($object, $name) {
		$ro = new \ReflectionObject($object);
		$rp = $ro->getProperty($name);
		$rp->setAccessible(true);
		return $rp->getValue($object);
	}
987181
public function isField(DataObject $object, $name)
    {
        return (
            !$this->isRelation($object, $name) &&
            !$this->isObject($object, $name) &&
            !$this->isChild($object, $name)
        );
    }
1228873
private function cannotCheck($type, $name, $args)
    {
        if (isset($args[0]) && (is_object($args[0]) && get_class($args[0]) === 'Closure')) {
            $type = 'closure';
            $args[1] = $args[0];
        } elseif (is_string($args[0]) && strpos($args[0], '::') !== false) {
            $type = 'method';
        }

        $this->check('not-equals', $type, $name, $args);
    }
612976
public static function set(string $namespace, string $name = null, $object = null)
    {
        $name = $name ?: 'default';

        self::$container[$namespace][$name] = $object;

        return $object;
    }
317901
public static void objectNotNull(Object object, String name) {
        if (verify) {
            if (object == null) {
                throw new IllegalArgumentException(name+":"+object);
            }
        }
    }
402153
public function isHasManyRelation(DataObject $object, $name)
    {
        return (boolean) $this->getSchema()->hasManyComponent($object, $name);
    }
823158
public static function formatName($object, $name)
    {
        return $object instanceof OrganizationalInterface
            ? static::formatNameWithOrg($name, $object->getOrganization())
            : $name;
    }
84164
public function update($object)
    {
        if ($this->isNewObject($object)) {
            throw new UnknownObjectException('The object of type "' . get_class($object) . '" (identifier: "' . $this->getIdentifierByObject($object) . '") which was passed to EntityManager->update() is not a previously persisted object. Check the code which updates this entity and make sure that only objects are updated which were persisted before. Alternatively use add() for persisting new objects."', 1313663277);
        }
        try {
            $this->entityManager->persist($object);
        } catch (\Exception $exception) {
            throw new PersistenceException('Could not merge object of type "' . get_class($object) . '"', 1297778180, $exception);
        }
    }
966627
public function hidden($name, $callback = null)
    {
        $value = data_get($this->row, $name);

        $field = new Fluent([
            'name'       => $name,
            'value'      => $value ?: '',
            'attributes' => [],
        ]);

        if ($callback instanceof Closure) {
            call_user_func($callback, $field);
        }

        $this->hiddens[$name] = $this->app->make('form')->hidden($name, $field->get('value'), $field->get('attributes'));
    }
257518
public function singleton($name, $object)
    {
        if (IOC::hasSingleton($name)) {
            return IOC::singleton($name);
        } else {
            IOC::singleton($name, $object);
            return $object;
        }
    }
1091526
protected function setProperty(&$object, $name, $value)
    {
        $property = $this->getPropertyInstance($object, $name);
        $oldValue = $property->getValue($object);
        $property->setValue($object, $value);

        return $oldValue;
    }
1294494
protected function getProperty($object, $name)
    {
        $class = new \ReflectionClass($object);
        while (!$class->hasProperty($name)) {
            $class = $class->getParentClass();
        }
        return $class->getProperty($name);
    }
571368
public function offsetSet($name, $object)
    {
        if (!$object instanceof LibBaseTemplateObjectInterface) {
            if (empty($name)) {
                throw new AnConfigException('Template object name must be unique and non empty');
            }

            $object = LibBaseTemplateObject::getInstance($name, $object);
        }

        $this->_objects[$object->getName()] = $object;

        return $object;
    }
1240668
public function getObjectValue($object, $name)
    {
        if (is_object($object) && isset($object->$name) && !method_exists($object, $name)) {
            return $object->$name;
        }

        // If its a nested value like meta[user[phone]]
        if (strpos($name, '[') > 0) {
            $nested = explode('[', str_replace(']', '', $name));
            $final = $object;
            foreach ($nested as $property) {
                if (!empty($property) && isset($final->{$property})) {
                    $final = $final->{$property};
                } elseif (is_object($final) && is_null($final->{$property})) {
                    $final = '';
                }
            }

            return $final;
        }

        return '';
    }
735152
private static function _object(&$data, $name)
	{
		?>
		<li class="krumo-child">

			<div <?php if (count($data) > 0) {?> onClick="krumo.toggle(this);"<?php } ?>
				class="krumo-element<?php echo count($data) > 0 ? ' krumo-expand' : '';?>" >

					<a class="krumo-name"><?php echo $name;?></a>
					(<em class="krumo-type">Object</em>)
					<strong class="krumo-class"><?php echo get_class($data);?></strong>
			</div>

			<?php if (count($data))
			{
				self::_vars($data);
			} ?>
		</li>
		<?php
	}
421484
protected function eventsCallback(string $name, string $event): void
    {
        $this->server->on($name, function () use ($name, $event) {
            try {
                $this->eventObjects[$name] = new $event(...$this->filterServer(func_get_args()));
                $this->eventObjects[$name]->handle($this);
            } catch (\Exception $e) {
                $this->app->make(ExceptionHandler::class)->report($e);
            } catch (\Throwable $e) {
                $this->app->make(ExceptionHandler::class)->report(new FatalThrowableError($e));
            }
        });
    }
724468
public function defineTask($name, $object)
    {
        $options = static::getOptions();
        $debug = @$options['debug'] === true;

        if ($this->started)
            throw new \Exception("Define tasks before start()ing the daemon not after");

        if (! $object instanceof AbstractTask)
            throw new \Exception("Task must implement AbstractTask");

        $object->setDaemon($this);
        $this->tasks[$name] = $object;

        if ($debug)
            echo "==> Task defined: $name" . PHP_EOL;

        return $this;
    }