From 6e6b57ae123b6654c0a0c2399c94c992a663f9d5 Mon Sep 17 00:00:00 2001 From: Airton Zanon Date: Tue, 11 Jul 2023 10:54:45 +0200 Subject: [PATCH 1/4] =?UTF-8?q?Corrige=20array=5Fcount=5Fvalues=20para=20u?= =?UTF-8?q?ltima=20revis=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Airton Zanon --- reference/array/functions/array-count-values.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/array/functions/array-count-values.xml b/reference/array/functions/array-count-values.xml index 3c59eec1d..1de4c0f99 100644 --- a/reference/array/functions/array-count-values.xml +++ b/reference/array/functions/array-count-values.xml @@ -1,9 +1,9 @@ - + array_count_values - Conta todos os valores de um array + Conta as ocorrências de cada valor distinto em um array From 0e946d069a1f49b8a09272cb87403f27583f506b Mon Sep 17 00:00:00 2001 From: Airton Zanon Date: Tue, 11 Jul 2023 10:56:24 +0200 Subject: [PATCH 2/4] =?UTF-8?q?Remove=20linha=20para=20estar=20atualizada?= =?UTF-8?q?=20para=20ultima=20revis=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Airton Zanon --- reference/classobj/functions/get-declared-traits.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reference/classobj/functions/get-declared-traits.xml b/reference/classobj/functions/get-declared-traits.xml index 51a13f926..07cd877fd 100644 --- a/reference/classobj/functions/get-declared-traits.xml +++ b/reference/classobj/functions/get-declared-traits.xml @@ -1,5 +1,5 @@ - + @@ -28,7 +28,6 @@ &reftitle.returnvalues; Retorna um array com todos os nomes das traids declaradas em seus valores. - Retorna &null; em caso de falha. From 4e17600f194e2b82a831ff310cfc0726ffcd68bc Mon Sep 17 00:00:00 2001 From: Airton Zanon Date: Tue, 11 Jul 2023 10:58:12 +0200 Subject: [PATCH 3/4] =?UTF-8?q?Atualiza=20para=20ultima=20revis=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Airton Zanon --- reference/classobj/functions/get-declared-interfaces.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reference/classobj/functions/get-declared-interfaces.xml b/reference/classobj/functions/get-declared-interfaces.xml index 4a79a794f..0240a0014 100644 --- a/reference/classobj/functions/get-declared-interfaces.xml +++ b/reference/classobj/functions/get-declared-interfaces.xml @@ -1,5 +1,5 @@ - + get_declared_interfaces @@ -15,6 +15,12 @@ Retorna as interfaces declaradas. + + + &reftitle.parameters; + &no.function.parameters; + + &reftitle.returnvalues; @@ -56,6 +62,7 @@ Array &reftitle.seealso; + interface_exists get_declared_classes class_implements From 7cb107ac8ed506629301582a62b2f2744392f97c Mon Sep 17 00:00:00 2001 From: Airton Zanon Date: Tue, 11 Jul 2023 11:11:22 +0200 Subject: [PATCH 4/4] Update to last revision This one we also needed to update some examples that were not added to this file, so I did a comparison to the English doc and updated it. Signed-off-by: Airton Zanon --- .../classobj/functions/get-class-vars.xml | 64 +++++++++++++++---- 1 file changed, 53 insertions(+), 11 deletions(-) diff --git a/reference/classobj/functions/get-class-vars.xml b/reference/classobj/functions/get-class-vars.xml index 0b40b8a5a..645cf9464 100644 --- a/reference/classobj/functions/get-class-vars.xml +++ b/reference/classobj/functions/get-class-vars.xml @@ -1,5 +1,5 @@ - + get_class_vars @@ -9,7 +9,7 @@ &reftitle.description; arrayget_class_vars - stringclass_name + stringclass Obtém as propriedades padrão de uma dada classe. @@ -20,7 +20,7 @@ - class_name + class O nome da classe @@ -33,9 +33,11 @@ &reftitle.returnvalues; - Retorna um array associativo das propriedades públicas padrão da classe. + Retorna um array associativo das propriedades declaradas visíveis no + escopo atual, com seu valor padrão. Os elementos do array resultante estão na forma de - nome da variável => valor. + nome da variável => valor. + Em caso de um erro, retornará &false;. @@ -78,14 +80,55 @@ foreach ($class_vars as $name => $value) { &example.outputs; + + + + + + <function>get_class_vars</function> and scoping behaviour + + +]]> + + &example.outputs; + + @@ -101,7 +144,6 @@ var3 : 100 -