« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 14 for ghost (0.003 sec.)
The MongoDB\Driver\ServerDescription class 11658
« MongoDB\Driver\Server::isSecondary MongoDB\Driver\ServerDescription::getHelloResponse » PHP Manual MongoDB\Driver The MongoDB\Driver\ServerDescription class 検索 The MongoDB\Driver\ServerDescription class (mongodb >=1.13.0) はじめに The M ... "RSSecondary" ; const string TYPE_RS_ARBITER = "RSArbiter" ; const string TYPE_RS_OTHER = "RSOther" ; const string TYPE_RS_GHOST = "RSGhost" ; const string TYPE_LOAD_BALANCER = "LoadBalancer" ; /* メソッド */ final public function getHelloResponse (): ... ir hosts lists are useful for discovering the current replica set configuration. MongoDB\Driver\ServerDescription::TYPE_RS_GHOST Replica set ghost server type, returned by MongoDB\Driver\ServerDescription::getType() . Servers may be identified as such ...
https://man.mtool.work/php/8.3/class.mongodb-driver-serverdescription.html
The MongoDB\Driver\ServerDescription class 11658
« MongoDB\Driver\Server::isSecondary MongoDB\Driver\ServerDescription::getHelloResponse » PHP Manual MongoDB\Driver The MongoDB\Driver\ServerDescription class 検索 The MongoDB\Driver\ServerDescription class (mongodb >=1.13.0) はじめに The M ... "RSSecondary" ; const string TYPE_RS_ARBITER = "RSArbiter" ; const string TYPE_RS_OTHER = "RSOther" ; const string TYPE_RS_GHOST = "RSGhost" ; const string TYPE_LOAD_BALANCER = "LoadBalancer" ; /* メソッド */ final public function getHelloResponse (): ... ir hosts lists are useful for discovering the current replica set configuration. MongoDB\Driver\ServerDescription::TYPE_RS_GHOST Replica set ghost server type, returned by MongoDB\Driver\ServerDescription::getType() . Servers may be identified as such ...
https://man.mtool.work/php/8.3/class.mongodb-driver-serverdescription.html
The MongoDB\Driver\Server class 10713
« MongoDB\Driver\CursorInterface::toArray MongoDB\Driver\Server::__construct » PHP Manual MongoDB\Driver The MongoDB\Driver\Server class 検索 The MongoDB\Driver\Server class (mongodb >=1.0.0) はじめに クラス概要 final class MongoDB\Driver\S ... RY = 4 ; const int TYPE_RS_SECONDARY = 5 ; const int TYPE_RS_ARBITER = 6 ; const int TYPE_RS_OTHER = 7 ; const int TYPE_RS_GHOST = 8 ; const int TYPE_LOAD_BALANCER = 9 ; /* メソッド */ final private function __construct () final public function execut ... ed, but their hosts lists are useful for discovering the current replica set configuration. MongoDB\Driver\Server::TYPE_RS_GHOST Replica set ghost server type, returned by MongoDB\Driver\Server::getType() . Servers may be identified as such in at leas ...
https://man.mtool.work/php/8.3/class.mongodb-driver-server.html
The MongoDB\Driver\Server class 10713
« MongoDB\Driver\CursorInterface::toArray MongoDB\Driver\Server::__construct » PHP Manual MongoDB\Driver The MongoDB\Driver\Server class 検索 The MongoDB\Driver\Server class (mongodb >=1.0.0) はじめに クラス概要 final class MongoDB\Driver\S ... RY = 4 ; const int TYPE_RS_SECONDARY = 5 ; const int TYPE_RS_ARBITER = 6 ; const int TYPE_RS_OTHER = 7 ; const int TYPE_RS_GHOST = 8 ; const int TYPE_LOAD_BALANCER = 9 ; /* メソッド */ final private function __construct () final public function execut ... ed, but their hosts lists are useful for discovering the current replica set configuration. MongoDB\Driver\Server::TYPE_RS_GHOST Replica set ghost server type, returned by MongoDB\Driver\Server::getType() . Servers may be identified as such in at leas ...
https://man.mtool.work/php/8.3/class.mongodb-driver-server.html
レイジーオブジェクトを強制的に初期化する 10240
« ReflectionClass::implementsInterface ReflectionClass::inNamespace » PHP Manual ReflectionClass レイジーオブジェクトを強制的に初期化する 検索 ReflectionClass::initializeLazyObject (PHP 8 >= 8.4.0) ReflectionClass::initializeLazyObject — レ ... __construct (public int $prop ) { } } $reflector = new ReflectionClass ( Example ::class); $object = $reflector -> newLazyGhost (function ( $object ) { echo "Initializer called\n" ; $object -> __construct ( 1 ); }); var_dump ( $object ); $reflector - ... > initializeLazyObject ( $object ); var_dump ( $object ); ?> 上の例の出力は以下となります。 lazy ghost object(Example)#3 (0) { ["prop"]=> uninitialized(int) } Initializer called object(Example)#3 (1) { ["prop"]=> int(1) } 参考 ... レイジーオブジェクト ReflectionClass::newLazyGhost() - 新しいレイジーゴーストインスタンスを作成する ReflectionClass::markLazyObjectAsInitialized() - イニシャライザまたはファ ...
https://man.mtool.work/php/8.3/reflectionclass.initializelazyobject.html
レイジーオブジェクトを強制的に初期化する 8122
« ReflectionClass::implementsInterface ReflectionClass::inNamespace » PHP Manual ReflectionClass レイジーオブジェクトを強制的に初期化する 検索 ReflectionClass::initializeLazyObject (PHP 8 >= 8.4.0) ReflectionClass::initializeLazyObject — レ ... __construct (public int $prop ) { } } $reflector = new ReflectionClass ( Example ::class); $object = $reflector -> newLazyGhost (function ( $object ) { echo "Initializer called\n" ; $object -> __construct ( 1 ); }); var_dump ( $object ); $reflector - ... > initializeLazyObject ( $object ); var_dump ( $object ); ?> 上の例の出力は以下となります。 lazy ghost object(Example)#3 (0) { ["prop"]=> uninitialized(int) } Initializer called object(Example)#3 (1) { ["prop"]=> int(1) } 参考 ... レイジーオブジェクト ReflectionClass::newLazyGhost() - 新しいレイジーゴーストインスタンスを作成する ReflectionClass::markLazyObjectAsInitialized() - イニシャライザまたはファ ...
https://man.mtool.work/php/8.3/reflectionclass.initializelazyobject.html
新機能 7649
« PHP 8.3.x から PHP 8.4.x への移行 新しいクラス、列挙型、インターフェイス » PHP Manual PHP 8.3.x から PHP 8.4.x への移行 新機能 検索 新機能 PHP コア プロパティフック オブジェクトのプロパティは、 get および set 操作に 追加のロジックを関連付 ... hp class Example { public function __construct (private int $data ) { } // ... } $initializer = static function ( Example $ghost ): void { // データや依存関係を取得します $data = getData (); // 初期化します $ghost -> __construct ( $data ); }; $reflect ... or = new ReflectionClass ( Example ::class); $object = $reflector -> newLazyGhost ( $initializer ); #[\Deprecated] アトリビュート 新しい Deprecated 属性を使用して、関数、メソッド、 およびクラス定数を非推奨 ... すようになりました。 レイジーオブジェクト機能に関連する複数の新しいメソッドと定数が 追加されました: ReflectionClass::newLazyGhost() ReflectionClass::newLazyProxy() ReflectionClass::resetAsLazyGhost() ReflectionClass::resetAsLazyProxy() ReflectionClass: ...
https://man.mtool.work/php/8.3/migration84.new-features.html
イニシャライザまたはファクトリを呼び出さずレイジーオブジェクトを初期化済みとして... 7649
« ReflectionClass::isUserDefined ReflectionClass::newInstance » PHP Manual ReflectionClass イニシャライザまたはファクトリを呼び出さずレイジーオブジェクトを初期化済みとしてマークする 検索 ReflectionClass::markLazyObjectAsInitialized (PHP 8 > ... ic string $prop3 = 'default value' ; } $reflector = new ReflectionClass ( Example ::class); $object = $reflector -> newLazyGhost (function ( $object ) { echo "Initializer called\n" ; $object -> prop1 = 'initialized' ; }); $reflector -> getProperty ( ' ... ect ); $reflector -> markLazyObjectAsInitialized ( $object ); var_dump ( $object ); ?> 上の例の出力は以下となります。 lazy ghost object(Example)#3 (1) { ["prop1"]=> string(11) "prop1 value" ["prop2"]=> uninitialized(string) ["prop3"]=> uninitialized(s ... ic string $prop3 = 'default value' ; } $reflector = new ReflectionClass ( Example ::class); $object = $reflector -> newLazyGhost (function ( $object ) { echo "Initializer called\n" ; $object -> prop1 = 'initialized' ; }); $reflector -> getProperty ( ' ...
https://man.mtool.work/php/8.3/reflectionclass.marklazyobjectasinitialized.html
新しいレイジーゴーストインスタンスを作成する 7649
« ReflectionClass::newInstanceWithoutConstructor ReflectionClass::newLazyProxy » PHP Manual ReflectionClass 新しいレイジーゴーストインスタンスを作成する 検索 ReflectionClass::newLazyGhost (PHP 8 >= 8.4.0) ReflectionClass::newLazyGhost — 新し ... いレイジーゴーストインスタンスを作成する 説明 public function ReflectionClass::newLazyGhost ( callable $initializer , int $options = 0 ): object クラスの新しいレイジーゴーストインスタンスを作成し、 initializer をア ... $prop ) { echo __METHOD__ , "\n" ; } } $reflector = new ReflectionClass ( Example ::class); $object = $reflector -> newLazyGhost (function ( Example $object ) { $object -> __construct ( 1 ); }); var_dump ( $object ); var_dump ( $object instanceof Exam ... ; // 初期化をトリガーし、その後プロパティを取得します var_dump ( $object -> prop ); ?> 上の例の出力は以下となります。 lazy ghost object(Example)#3 (0) { ["prop"]=> uninitialized(int) } bool(true) Example::__construct int(1) 参考 レイジーオブジェクト R ...
https://man.mtool.work/php/8.3/reflectionclass.newlazyghost.html
新機能 7649
« PHP 8.3.x から PHP 8.4.x への移行 新しいクラス、列挙型、インターフェイス » PHP Manual PHP 8.3.x から PHP 8.4.x への移行 新機能 検索 新機能 PHP コア プロパティフック オブジェクトのプロパティは、 get および set 操作に 追加のロジックを関連付 ... hp class Example { public function __construct (private int $data ) { } // ... } $initializer = static function ( Example $ghost ): void { // データや依存関係を取得します $data = getData (); // 初期化します $ghost -> __construct ( $data ); }; $reflect ... or = new ReflectionClass ( Example ::class); $object = $reflector -> newLazyGhost ( $initializer ); #[\Deprecated] アトリビュート 新しい Deprecated 属性を使用して、関数、メソッド、 およびクラス定数を非推奨 ... すようになりました。 レイジーオブジェクト機能に関連する複数の新しいメソッドと定数が 追加されました: ReflectionClass::newLazyGhost() ReflectionClass::newLazyProxy() ReflectionClass::resetAsLazyGhost() ReflectionClass::resetAsLazyProxy() ReflectionClass: ...
https://man.mtool.work/php/8.3/migration84.new-features.html
PREV 1 2 NEXT