Results of 1 - 10 of about 127 for attribute (0.002 sec.)
- The RarEntry class | PHP 8.3 11280
- The RarEntry class (PECL rar >= 0.1) はじめに A RAR entry, representing a directory or a compressed file inside a RAR archive. クラス概要 final class RarEntry { /* 定数 */ const int HOST_MSDOS = 0 ; const int HOST_OS2 = 1 ; const int HOST_W
... IN32 = 2 ; const int HOST_UNIX = 3 ; const int HOST_MACOS = 4 ; const int HOST_BEOS = 5 ; const int ATTRIBUTE_WIN_READONLY = 1 ; const int ATTRIBUTE_WIN_HIDDEN = 2 ; const int ATTRIBUTE_WIN_SYSTEM = 4 ; const int ATTRIBUTE_WIN_DIREC ... TORY = 16 ; const int ATTRIBUTE_WIN_ARCHIVE = 32 ; const int ATTRIBUTE_WIN_DEVICE = 64 ; const int ATTRIBUTE_WIN_NORMAL = 128 ; const int ATTRIBUTE_WIN_TE ... MPORARY = 256 ; const int ATTRIBUTE_WIN_SPARSE_FILE = 512 ; const int ATTRIBUTE_WIN_REPARSE_POINT = 1024 ; const int ATTRIBUTE_WIN_COMPRESSED = 2048 ; const i ...
-
https://man.mtool.work/php/8.3/class.rarentry.html
- RADIUS Attribute Types | PHP 8.3 10276
- RADIUS Attribute Types These constants define RADIUS attribute types that can be used with radius_put_addr() , radius_put_attr() , radius_put_int() and radius_put_string() . RADIUS_USER_NAME ( int ) The User-Name attribute. The attribute va
... e of the user being authenticated, and can be set using radius_put_attr() . RADIUS_USER_PASSWORD ( int ) The User-Password attribute. The attribute value is expected to be a string containing the user's password, and can be set using radius_put_attr() . T ... l be obfuscated on transmission as described in » section 5.2 of RFC 2865 . RADIUS_CHAP_PASSWORD ( int ) The Chap-Password attribute. The attribute value is expected to be a string with the first byte containing the CHAP identifier, and the subsequent 16 ... value concatenated together. Note that the CHAP challenge value should also be sent separately in a RADIUS_CHAP_CHALLENGE attribute. 例1 Using CHAP passwords <?php // Firstly, we'll create an authentication handle and request. $radh = radius_auth_open () ...
-
https://man.mtool.work/php/8.3/radius.constants.attributes.html
- アトリビュートクラスを宣言する | PHP 8.3 9763
- アトリビュートクラスを宣言する アトリビュートごとに個別のクラスを定義することをお勧めします。 最も単純なケースでは、 #[Attribute] 宣言を持つ空のクラスで十分です。 このアトリビュートは、 use 文を使用してグローバル名前空間からインポートできま
... す。 例1 単純なアトリビュートクラスの例 <?php namespace Example ; use Attribute ; #[ Attribute ] class MyAttribute { } アトリビュートを適用できる宣言の種類を制限するには、 #[Attribute] 宣言の最初の引数と ... スクを渡します。 例2 アトリビュートを使える場所を限定するために、ターゲットとなるクラスを作る <?php namespace Example ; use Attribute ; #[ Attribute ( Attribute :: TARGET_METHOD | Attribute :: TARGET_FUNCTION )] class MyAttribute { } MyAttribute を別の型で ... 宣言すると、 ReflectionAttribute::newInstance() の呼び出し時に例外がスローされます。 ビットマスクには、以下が指定できます: Attribute::TARGET_CLASS Attribut ...
-
https://man.mtool.work/php/8.3/language.attributes.classes.html
- Attribute アトリビュート | PHP 8.3 9383
- Attribute アトリビュート (PHP 8) はじめに アトリビュートを使うと、 コンピューターが解析できる構造化されたメタデータの情報を、 コードの宣言時に埋め込むことができます。 つまり、クラス、メソッド、関数、パラメータ、プロパティ、クラス定数にアトリ
... ます。 よって、アトリビュートは、 コードに直接埋め込むことが出来る、 設定のための言語とみなすことができます。 クラス概要 #[ \Attribute ( \Attribute::TARGET_CLASS )] final class Attribute { /* 定数 */ const int TARGET_CLASS ; const int TARGET_FUNCTION ; cons ... const int IS_REPEATABLE ; /* プロパティ */ public int $ flags ; /* メソッド */ public function __construct ( int $flags = Attribute::TARGET_ALL ) } 定義済み定数 Attribute::TARGET_CLASS Attribute::TARGET_FUNCTION Attribute::TARGET_METHOD Attribute::TARGET ... _PROPERTY Attribute::TARGET_CLASS_CONSTANT Attribute::TARGET_PARAMETER Attribute::TARGET_CONSTANT Attribute::TARGET_ALL Attribute::IS_REPEATAB ...
-
https://man.mtool.work/php/8.3/class.attribute.html
- ReflectionFunctionAbstract::getAttributes — アトリビュートを取得する | PHP 8.3 9041
- ReflectionFunctionAbstract::getAttributes (PHP 8) ReflectionFunctionAbstract::getAttributes — アトリビュートを取得する 説明 public function ReflectionFunctionAbstract::getAttributes ( ? string $name = null , int $flags = 0 ): array この関数
... で宣言されている全てのアトリビュートを、 ReflectionAttribute として返します。 パラメータ name 指定したクラス名にマッチするアトリビュートの、 ReflectionAttribute のみを含むようにフィル ... ルトは 0 です。 この場合、アトリビュートのクラス名が name であるものだけを返します。 他の利用可能なオプションは、 ReflectionAttribute::IS_INSTANCEOF です。 この場合、フィルタリングに instanceof を使います。 戻り値 アトリビュートの配列を、 ReflectionAttribu ... te オブジェクトの配列として返します。 例 例1 メソッドを使った、基本的な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Factory { #[ Fruit ] #[ Red ] public function makeApple (): string { ...
-
https://man.mtool.work/php/8.3/reflectionfunctionabstract.getattributes.html
- Collator::setAttribute — 照合用の属性を設定する | PHP 8.3 8564
- Collator::setAttribute collator_set_attribute (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::setAttribute -- collator_set_attribute — 照合用の属性を設定する 説明 オブジェクト指向型 public function Collator::setAttribute ( int
... $attribute , int $value ): bool 手続き型 function collator_set_attribute ( Collator $object , int $attribute , int $value ): bool パラ ... メータ object Collator オブジェクト。 attribute 属性。 value 属性の値。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 collator_set_attribute() の ... 例 <?php $coll = collator_create ( 'en_CA' ); collator_set_attribute ( $coll , Collator :: NORMALIZATION_MODE , Collator :: ON ); ?> 参考 Collator の定数 collator_get_attribute() - 照合用の属 ...
-
https://man.mtool.work/php/8.3/collator.setattribute.html
- NumberFormatter::getAttribute — 属性を取得する | PHP 8.3 8564
- NumberFormatter::getAttribute numfmt_get_attribute (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) NumberFormatter::getAttribute -- numfmt_get_attribute — 属性を取得する 説明 オブジェクト指向型 public function NumberFormatter::getAttribute
... te ( int $attribute ): int | float | false 手続き型 function numfmt_get_attribute ( NumberFormatter $formatter , int $attribute ): int | float ... 数値属性の例としては、フォーマッタが作成する整数部の桁数などがあります。 パラメータ formatter NumberFormatter オブジェクト。 attribute 属性指定子。 数値属性 定数のいずれか。 戻り値 成功した場合に属性の値、エラー時に false を返します。 例 例1 numfmt_get_attr ... ibute() の例 <?php $fmt = numfmt_create ( 'de_DE' , NumberFormatter :: DECIMAL ); echo "Digits: " . numfmt_get_attribute ( $fmt , NumberFormatter :: MAX_FRACTION_DIGITS ). "\n" ; echo numfmt_format ( $fmt , 1234567.891234567890000 ). "\n" ; nu ...
-
https://man.mtool.work/php/8.3/numberformatter.getattribute.html
- ReflectionExtension::getConstants — 定数を取得する | PHP 8.3 8527
- ReflectionExtension::getConstants (PHP 5, PHP 7, PHP 8) ReflectionExtension::getConstants — 定数を取得する 説明 public function ReflectionExtension::getConstants (): array 拡張モジュールで定義されている定数を取得します。 パラメータ この関数
... rint_r ( $ext -> getConstants ()); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [XML_ELEMENT_NODE] => 1 [XML_ATTRIBUTE_NODE] => 2 [XML_TEXT_NODE] => 3 [XML_CDATA_SECTION_NODE] => 4 [XML_ENTITY_REF_NODE] => 5 [XML_ENTITY_NODE] => 6 [XML_PI_NO ... DE] => 11 [XML_NOTATION_NODE] => 12 [XML_HTML_DOCUMENT_NODE] => 13 [XML_DTD_NODE] => 14 [XML_ELEMENT_DECL_NODE] => 15 [XML_ATTRIBUTE_DECL_NODE] => 16 [XML_ENTITY_DECL_NODE] => 17 [XML_NAMESPACE_DECL_NODE] => 18 [XML_LOCAL_NAMESPACE] => 18 [XML_ATTRIBUTE_C ... DATA] => 1 [XML_ATTRIBUTE_ID] => 2 [XML_ATTRIBUTE_IDREF] => 3 [XML_ATTRIBUTE_IDREFS] => 4 [XML_ATTRIBUTE_ENTITY] => 6 [XML_ATTRIBUTE_NMTOKEN] => 7 [ ...
-
https://man.mtool.work/php/8.3/reflectionextension.getconstants.html
- Collator::getAttribute — 照合用の属性の値を取得する | PHP 8.3 8466
- Collator::getAttribute collator_get_attribute (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::getAttribute -- collator_get_attribute — 照合用の属性の値を取得する 説明 オブジェクト指向型 public function Collator::getAttribute (
... int $attribute ): int | false 手続き型 function collator_get_attribute ( Collator $object , int $attribute ): int | false collator の属性 ... の値を取得します。 パラメータ object Collator オブジェクト。 attribute 値を取得したい属性。 戻り値 属性の値を返します。 失敗した場合に false を返します 例 例1 collator_get_attribute() の例 <?ph ... p $coll = collator_create ( 'en_CA' ); $val = collator_get_attribute ( $coll , Collator :: NUMERIC_COLLATION ); if( $val === false ) { // エラー処理 } ?> 参考 Collator の定数 collator_set_att ...
-
https://man.mtool.work/php/8.3/collator.getattribute.html
- NumberFormatter::getTextAttribute — テキストの属性を取得する | PHP 8.3 8368
- NumberFormatter::getTextAttribute numfmt_get_text_attribute (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) NumberFormatter::getTextAttribute -- numfmt_get_text_attribute — テキストの属性を取得する 説明 オブジェクト指向型 public function
... NumberFormatter::getTextAttribute ( int $attribute ): string | false 手続き型 function numfmt_get_text_attribute ( NumberFormatter $formatter , int $attribu ... T_RULESET および NumberFormatter::PUBLIC_RULESETS のみが使用できます。 パラメータ formatter NumberFormatter オブジェクト。 attribute 属性指定子。 テキスト属性 定数のいずれか。 戻り値 成功した場合に属性の値、あるいはエラー時に false を返します。 例 例1 num ... fmt_get_text_attribute() の例 <?php $fmt = numfmt_create ( 'de_DE' , NumberFormatter :: DECIMAL ); echo "Prefix: " . numfmt_get_text_attribute ( ...
-
https://man.mtool.work/php/8.3/numberformatter.gettextattribute.html