From 0041f034fd55f95a65b49d97e6974522b9cf3049 Mon Sep 17 00:00:00 2001 From: Bizley Date: Tue, 19 Oct 2021 14:50:26 +0200 Subject: [PATCH] [doc] Update PHP doc links (#18957) * Replace https://secure.php.net with https://www.php.net * Replace http://www.php.net with https://www.php.net --- docs/guide-ar/start-databases.md | 2 +- docs/guide-ar/start-installation.md | 6 +- docs/guide-ar/start-prerequisites.md | 2 +- docs/guide-es/caching-data.md | 6 +- docs/guide-es/caching-http.md | 2 +- docs/guide-es/concept-autoloading.md | 2 +- docs/guide-es/concept-di-container.md | 2 +- docs/guide-es/concept-events.md | 2 +- docs/guide-es/db-dao.md | 6 +- docs/guide-es/glossary.md | 2 +- docs/guide-es/helper-array.md | 8 +- docs/guide-es/helper-html.md | 6 +- docs/guide-es/intro-upgrade-from-v1.md | 14 +-- docs/guide-es/intro-yii.md | 4 +- docs/guide-es/runtime-bootstrapping.md | 2 +- docs/guide-es/security-passwords.md | 2 +- docs/guide-es/start-databases.md | 2 +- docs/guide-es/start-installation.md | 6 +- docs/guide-es/start-prerequisites.md | 6 +- docs/guide-es/structure-applications.md | 2 +- docs/guide-es/structure-models.md | 4 +- docs/guide-es/structure-widgets.md | 2 +- docs/guide-es/tutorial-core-validators.md | 2 +- docs/guide-fr/caching-data.md | 6 +- docs/guide-fr/caching-http.md | 2 +- docs/guide-fr/db-active-record.md | 6 +- docs/guide-fr/db-query-builder.md | 2 +- docs/guide-fr/helper-array.md | 10 +- docs/guide-fr/helper-html.md | 6 +- docs/guide-fr/intro-upgrade-from-v1.md | 14 +-- docs/guide-fr/intro-yii.md | 2 +- docs/guide-fr/output-formatting.md | 4 +- docs/guide-fr/security-passwords.md | 2 +- docs/guide-fr/start-databases.md | 2 +- docs/guide-fr/start-installation.md | 6 +- docs/guide-fr/start-prerequisites.md | 4 +- docs/guide-fr/structure-applications.md | 2 +- docs/guide-fr/structure-models.md | 2 +- docs/guide-fr/structure-widgets.md | 2 +- docs/guide-fr/tutorial-i18n.md | 6 +- docs/guide-id/intro-upgrade-from-v1.md | 12 +-- docs/guide-id/intro-yii.md | 2 +- docs/guide-id/start-installation.md | 6 +- docs/guide-id/structure-applications.md | 2 +- docs/guide-it/intro-upgrade-from-v1.md | 12 +-- docs/guide-it/intro-yii.md | 4 +- docs/guide-it/start-installation.md | 4 +- docs/guide-ja/caching-data.md | 8 +- docs/guide-ja/caching-http.md | 2 +- docs/guide-ja/concept-autoloading.md | 4 +- docs/guide-ja/concept-events.md | 2 +- docs/guide-ja/db-active-record.md | 6 +- docs/guide-ja/db-dao.md | 8 +- docs/guide-ja/db-query-builder.md | 2 +- docs/guide-ja/glossary.md | 2 +- docs/guide-ja/helper-array.md | 10 +- docs/guide-ja/helper-html.md | 6 +- docs/guide-ja/helper-json.md | 26 ++--- docs/guide-ja/input-file-upload.md | 2 +- docs/guide-ja/intro-upgrade-from-v1.md | 14 +-- docs/guide-ja/intro-yii.md | 2 +- docs/guide-ja/output-client-scripts.md | 2 +- docs/guide-ja/output-formatting.md | 8 +- docs/guide-ja/security-passwords.md | 2 +- docs/guide-ja/start-installation.md | 6 +- docs/guide-ja/start-prerequisites.md | 4 +- docs/guide-ja/structure-applications.md | 2 +- docs/guide-ja/structure-models.md | 4 +- docs/guide-ja/structure-widgets.md | 2 +- docs/guide-ja/tutorial-core-validators.md | 4 +- docs/guide-ja/tutorial-i18n.md | 6 +- docs/guide-ja/tutorial-performance-tuning.md | 4 +- docs/guide-pl/caching-http.md | 2 +- docs/guide-pl/concept-autoloading.md | 4 +- docs/guide-pl/db-active-record.md | 4 +- docs/guide-pl/glossary.md | 2 +- docs/guide-pl/intro-upgrade-from-v1.md | 14 +-- docs/guide-pl/intro-yii.md | 2 +- docs/guide-pl/start-installation.md | 6 +- docs/guide-pt-BR/caching-data.md | 8 +- docs/guide-pt-BR/caching-http.md | 2 +- docs/guide-pt-BR/intro-upgrade-from-v1.md | 14 +-- docs/guide-pt-BR/intro-yii.md | 2 +- docs/guide-pt-BR/start-installation.md | 6 +- docs/guide-pt-BR/start-prerequisites.md | 4 +- docs/guide-pt-BR/structure-applications.md | 2 +- docs/guide-pt-BR/structure-models.md | 4 +- docs/guide-pt-BR/tutorial-core-validators.md | 6 +- docs/guide-ru/caching-data.md | 6 +- docs/guide-ru/caching-http.md | 2 +- docs/guide-ru/concept-autoloading.md | 4 +- docs/guide-ru/concept-behaviors.md | 2 +- docs/guide-ru/concept-events.md | 2 +- docs/guide-ru/db-active-record.md | 2 +- docs/guide-ru/db-dao.md | 8 +- docs/guide-ru/helper-array.md | 8 +- docs/guide-ru/helper-html.md | 6 +- docs/guide-ru/input-file-upload.md | 2 +- docs/guide-ru/intro-upgrade-from-v1.md | 14 +-- docs/guide-ru/intro-yii.md | 4 +- docs/guide-ru/output-client-scripts.md | 2 +- docs/guide-ru/output-formatting.md | 8 +- docs/guide-ru/security-passwords.md | 2 +- docs/guide-ru/start-databases.md | 2 +- docs/guide-ru/start-installation.md | 4 +- docs/guide-ru/structure-applications.md | 2 +- docs/guide-ru/structure-models.md | 2 +- docs/guide-ru/tutorial-core-validators.md | 2 +- docs/guide-ru/tutorial-i18n.md | 6 +- docs/guide-ru/tutorial-performance-tuning.md | 4 +- docs/guide-tr/intro-yii.md | 2 +- docs/guide-tr/start-prerequisites.md | 2 +- docs/guide-uk/concept-autoloading.md | 2 +- docs/guide-uk/intro-upgrade-from-v1.md | 12 +-- docs/guide-uk/intro-yii.md | 2 +- docs/guide-uk/start-installation.md | 6 +- docs/guide-uk/structure-applications.md | 2 +- docs/guide-uk/structure-models.md | 2 +- docs/guide-uz/intro-upgrade-from-v1.md | 14 +-- docs/guide-uz/intro-yii.md | 2 +- docs/guide-uz/start-databases.md | 2 +- docs/guide-uz/start-installation.md | 4 +- docs/guide-vi/intro-yii.md | 2 +- docs/guide-vi/start-installation.md | 4 +- docs/guide-vi/start-prerequisites.md | 4 +- docs/guide-vi/structure-applications.md | 2 +- docs/guide-vi/structure-models.md | 2 +- docs/guide-zh-CN/caching-data.md | 8 +- docs/guide-zh-CN/caching-http.md | 2 +- docs/guide-zh-CN/db-active-record.md | 4 +- docs/guide-zh-CN/db-query-builder.md | 2 +- docs/guide-zh-CN/helper-array.md | 8 +- docs/guide-zh-CN/helper-html.md | 6 +- docs/guide-zh-CN/intro-upgrade-from-v1.md | 14 +-- docs/guide-zh-CN/intro-yii.md | 2 +- docs/guide-zh-CN/output-client-scripts.md | 2 +- docs/guide-zh-CN/output-formatting.md | 4 +- docs/guide-zh-CN/security-passwords.md | 2 +- docs/guide-zh-CN/start-installation.md | 6 +- docs/guide-zh-CN/start-prerequisites.md | 4 +- docs/guide-zh-CN/structure-applications.md | 2 +- docs/guide-zh-CN/structure-models.md | 4 +- docs/guide-zh-CN/structure-widgets.md | 2 +- docs/guide-zh-CN/tutorial-core-validators.md | 6 +- docs/guide-zh-CN/tutorial-i18n.md | 6 +- docs/guide-zh-CN/tutorial-performance-tuning.md | 6 +- docs/guide/caching-data.md | 8 +- docs/guide/caching-http.md | 2 +- docs/guide/db-active-record.md | 4 +- docs/guide/db-query-builder.md | 2 +- docs/guide/helper-array.md | 10 +- docs/guide/helper-html.md | 6 +- docs/guide/helper-json.md | 2 +- docs/guide/intro-upgrade-from-v1.md | 12 +-- docs/guide/intro-yii.md | 2 +- docs/guide/output-client-scripts.md | 2 +- docs/guide/output-formatting.md | 4 +- docs/guide/security-passwords.md | 2 +- docs/guide/start-installation.md | 6 +- docs/guide/start-prerequisites.md | 4 +- docs/guide/structure-applications.md | 2 +- docs/guide/structure-models.md | 2 +- docs/guide/structure-widgets.md | 2 +- docs/guide/tutorial-core-validators.md | 6 +- docs/guide/tutorial-i18n.md | 6 +- docs/guide/tutorial-performance-tuning.md | 4 +- framework/BaseYii.php | 2 +- framework/UPGRADE.md | 2 +- framework/base/Application.php | 6 +- framework/base/BaseObject.php | 4 +- framework/base/Component.php | 4 +- framework/base/ErrorException.php | 2 +- framework/base/Security.php | 8 +- framework/behaviors/TimestampBehavior.php | 4 +- framework/caching/ApcCache.php | 4 +- framework/caching/ExpressionDependency.php | 4 +- framework/caching/MemCache.php | 22 ++-- framework/caching/MemCacheServer.php | 2 +- framework/console/Application.php | 2 +- framework/console/UnknownCommandException.php | 4 +- framework/console/controllers/ServeController.php | 2 +- framework/db/ArrayExpression.php | 12 +-- framework/db/Command.php | 14 +-- framework/db/Connection.php | 14 +-- framework/db/DataReader.php | 6 +- framework/db/Exception.php | 2 +- framework/db/JsonExpression.php | 2 +- framework/db/PdoValue.php | 6 +- framework/db/QueryTrait.php | 4 +- framework/db/Schema.php | 6 +- framework/db/Transaction.php | 2 +- framework/db/cubrid/Schema.php | 2 +- framework/db/oci/Schema.php | 2 +- framework/filters/HttpCache.php | 4 +- framework/helpers/BaseArrayHelper.php | 16 +-- framework/helpers/BaseFileHelper.php | 6 +- framework/helpers/BaseFormatConverter.php | 10 +- framework/helpers/BaseHtml.php | 4 +- framework/helpers/BaseInflector.php | 2 +- framework/helpers/BaseJson.php | 2 +- framework/helpers/BaseStringHelper.php | 8 +- framework/helpers/Markdown.php | 2 +- framework/i18n/Formatter.php | 118 +++++++++++----------- framework/i18n/Locale.php | 2 +- framework/i18n/MessageFormatter.php | 12 +-- framework/log/FileTarget.php | 4 +- framework/log/SyslogTarget.php | 4 +- framework/requirements/requirements.php | 12 +-- framework/validators/DateValidator.php | 18 ++-- framework/validators/FileValidator.php | 6 +- framework/web/AssetBundle.php | 2 +- framework/web/CompositeUrlRule.php | 2 +- framework/web/DbSession.php | 2 +- framework/web/ErrorHandler.php | 2 +- framework/web/JsonResponseFormatter.php | 2 +- framework/web/Request.php | 2 +- framework/web/Session.php | 22 ++-- framework/web/UploadedFile.php | 2 +- tests/data/base/ArrayAccessObject.php | 8 +- tests/data/helpers/CustomDebugInfo.php | 2 +- tests/framework/helpers/StringHelperTest.php | 2 +- 221 files changed, 596 insertions(+), 596 deletions(-) diff --git a/docs/guide-ar/start-databases.md b/docs/guide-ar/start-databases.md index 9b7e43e..b41c5c6 100644 --- a/docs/guide-ar/start-databases.md +++ b/docs/guide-ar/start-databases.md @@ -68,7 +68,7 @@ INSERT INTO `country` VALUES ('US','United States',322976000); كما يمكنك تفعيل ال driver المطلوب عن طريق حذف الفاصلة المنقوطة قبل ال driver المقصود مثل: extension=php_pdo_mysql.dll ويمكنك الإطلاع على المزيد من هنا: -pdo installation +pdo installation

diff --git a/docs/guide-ar/start-installation.md b/docs/guide-ar/start-installation.md index 1ea5979..9e51c7e 100644 --- a/docs/guide-ar/start-installation.md +++ b/docs/guide-ar/start-installation.md @@ -143,7 +143,7 @@ composer create-project --prefer-dist yiisoft/yii2-app-basic basic --------------------------

- بعد الانتهاء من التثبيت، ستحتاج الى القيام بإعداد خادم الويب الخاص بك(your web server) (انظر القسم التالي) أو قم باستخدام built-in PHP web server عن طريق تنفيذ الأمر التالي داخل المسار web في المشروع الخاص بك: + بعد الانتهاء من التثبيت، ستحتاج الى القيام بإعداد خادم الويب الخاص بك(your web server) (انظر القسم التالي) أو قم باستخدام built-in PHP web server عن طريق تنفيذ الأمر التالي داخل المسار web في المشروع الخاص بك:

```bash @@ -179,7 +179,7 @@ http://localhost:8080/

- يجب عليك أن تقوم بتثبيت وإعداد ال PHP الخاص بك بحيث تلبي الحد الأدنى من متطلبات ال Yii. الأهم من ذلك يجب أن يكون الإصدار الخاص بال PHP أعلى أو يساوي 5.4. من الناحية المثالية أحدث إصدار يعمل مع ال Yii هو ال PHP 7. يجب عليك أيضًا تثبيت ال PDO PHP Extension. + يجب عليك أن تقوم بتثبيت وإعداد ال PHP الخاص بك بحيث تلبي الحد الأدنى من متطلبات ال Yii. الأهم من ذلك يجب أن يكون الإصدار الخاص بال PHP أعلى أو يساوي 5.4. من الناحية المثالية أحدث إصدار يعمل مع ال Yii هو ال PHP 7. يجب عليك أيضًا تثبيت ال PDO PHP Extension.

@@ -244,7 +244,7 @@ DocumentRoot "path/to/basic/web" -----------------------

- لاستخدام Nginx، يجب تثبيت PHP على أنه FPM SAPI، ويمكنك استخدام إعدادات ال Nginx التالية، مع الإنتباه على استبدال المسار من path/to/basic/web الى المسار الفعلي وصولا إلى basic/web بالإضافة الى إستبدال mysite.test إلى ال hostname الخاص بالتطبيق. + لاستخدام Nginx، يجب تثبيت PHP على أنه FPM SAPI، ويمكنك استخدام إعدادات ال Nginx التالية، مع الإنتباه على استبدال المسار من path/to/basic/web الى المسار الفعلي وصولا إلى basic/web بالإضافة الى إستبدال mysite.test إلى ال hostname الخاص بالتطبيق.

diff --git a/docs/guide-ar/start-prerequisites.md b/docs/guide-ar/start-prerequisites.md index 2398a58..03050b5 100644 --- a/docs/guide-ar/start-prerequisites.md +++ b/docs/guide-ar/start-prerequisites.md @@ -7,7 +7,7 @@ ##
PHP

- ال Yii هو إطار عمل PHP، لذا تأكد من قراءة وفهم المرجع الرسمي الخاص بلغة ال PHP. عند البدء بتطوير المشاريع أو التطبيقات باستخدام ال Yii ، ستكتب التعليمات البرمجية بطريقة كائنية التوجه OOP، لذا تأكد من أنك على دراية بـمفاهيم ال OOP وكذلك ال namespaces. + ال Yii هو إطار عمل PHP، لذا تأكد من قراءة وفهم المرجع الرسمي الخاص بلغة ال PHP. عند البدء بتطوير المشاريع أو التطبيقات باستخدام ال Yii ، ستكتب التعليمات البرمجية بطريقة كائنية التوجه OOP، لذا تأكد من أنك على دراية بـمفاهيم ال OOP وكذلك ال namespaces.

##
البرمجة كائنية التوجه object oriented programming
diff --git a/docs/guide-es/caching-data.md b/docs/guide-es/caching-data.md index 943a773..ed36374 100644 --- a/docs/guide-es/caching-data.md +++ b/docs/guide-es/caching-data.md @@ -72,13 +72,13 @@ el código que utiliza la caché. Por ejemplo, podrías modificar la configuraci Yii proporciona varios componentes de caché que pueden almacenar datos en diferentes medios. A continuación se muestra un listado con los componentes de caché disponibles: -* [[yii\caching\ApcCache]]: utiliza la extensión de PHP [APC](https://secure.php.net/manual/es/book.apc.php). Esta opción puede ser considerada como la más rápida de entre todas las disponibles para una aplicación centralizada. (ej. un servidor, no dedicado al balance de carga, etc). +* [[yii\caching\ApcCache]]: utiliza la extensión de PHP [APC](https://www.php.net/manual/es/book.apc.php). Esta opción puede ser considerada como la más rápida de entre todas las disponibles para una aplicación centralizada. (ej. un servidor, no dedicado al balance de carga, etc). * [[yii\caching\DbCache]]: utiliza una tabla de base de datos para almacenar los datos. Por defecto, se creará y usará como base de datos [SQLite3](http://sqlite.org/) en el directorio runtime. Se puede especificar explícitamente que base de datos va a ser utilizada configurando la propiedad `db`. * [[yii\caching\DummyCache]]: dummy cache (caché tonta) que no almacena en caché nada. El propósito de este componente es simplificar el código necesario para chequear la disponibilidad de caché. Por ejemplo, durante el desarrollo o si el servidor no tiene soporte de caché actualmente, puede utilizarse este componente de caché. Cuando este disponible un soporte en caché, puede cambiarse el componente correspondiente. En ambos casos, puede utilizarse el mismo código `Yii::$app->cache->get($key)` para recuperar un dato sin la preocupación de que `Yii::$app->cache` pueda ser `null`. * [[yii\caching\FileCache]]: utiliza un fichero estándar para almacenar los datos. Esto es adecuado para almacenar grandes bloques de datos (como páginas). -* [[yii\caching\MemCache]]: utiliza las extensiones de PHP [memcache](https://secure.php.net/manual/es/book.memcache.php) y [memcached](https://secure.php.net/manual/es/book.memcached.php). Esta opción puede ser considerada como la más rápida cuando la caché es manejada en una aplicación distribuida (ej. con varios servidores, con balance de carga, etc..) +* [[yii\caching\MemCache]]: utiliza las extensiones de PHP [memcache](https://www.php.net/manual/es/book.memcache.php) y [memcached](https://www.php.net/manual/es/book.memcached.php). Esta opción puede ser considerada como la más rápida cuando la caché es manejada en una aplicación distribuida (ej. con varios servidores, con balance de carga, etc..) * [[yii\redis\Cache]]: implementa un componente de caché basado en [Redis](http://redis.io/) que almacenan pares clave-valor (requiere la versión 2.6.12 de redis). -* [[yii\caching\WinCache]]: utiliza la extensión de PHP [WinCache](http://iis.net/downloads/microsoft/wincache-extension) ([ver también](https://secure.php.net/manual/es/book.wincache.php)). +* [[yii\caching\WinCache]]: utiliza la extensión de PHP [WinCache](http://iis.net/downloads/microsoft/wincache-extension) ([ver también](https://www.php.net/manual/es/book.wincache.php)). * [[yii\caching\XCache]] _(deprecated)_: utiliza la extensión de PHP [XCache](http://xcache.lighttpd.net/). * [[yii\caching\ZendDataCache]] _(deprecated)_: utiliza [Zend Data Cache](http://files.zend.com/help/Zend-Server-6/zend-server.htm#data_cache_component.htm) como el medio fundamental de caché. diff --git a/docs/guide-es/caching-http.md b/docs/guide-es/caching-http.md index e31025e..f8c033f 100644 --- a/docs/guide-es/caching-http.md +++ b/docs/guide-es/caching-http.md @@ -130,7 +130,7 @@ especifican en `session.cache_limiter` de la configuración INI de PHP. Estas ca el almacenamiento de caché que desees de `HttpCache`. Para evitar este problema, por defecto `HttpCache` deshabilitará automáticamente el envío de estas cabeceras. Si deseas modificar este comportamiento, tienes que configurar la propiedad [[yii\filters\HttpCache::sessionCacheLimiter]]. La propiedad puede tomar un valor de cadena, incluyendo `public`, `private`, -`private_no_expire`, and `nocache`. Por favor, consulta el manual PHP acerca de [session_cache_limiter()](https://secure.php.net/manual/es/function.session-cache-limiter.php) +`private_no_expire`, and `nocache`. Por favor, consulta el manual PHP acerca de [session_cache_limiter()](https://www.php.net/manual/es/function.session-cache-limiter.php) para una mejor explicación sobre esos valores. diff --git a/docs/guide-es/concept-autoloading.md b/docs/guide-es/concept-autoloading.md index 98c1a18..598bf7a 100644 --- a/docs/guide-es/concept-autoloading.md +++ b/docs/guide-es/concept-autoloading.md @@ -1,7 +1,7 @@ Autocarga de clases =================== -Yii depende del [mecanismo de autocarga de clases](https://secure.php.net/manual/es/language.oop5.autoload.php) para localizar +Yii depende del [mecanismo de autocarga de clases](https://www.php.net/manual/es/language.oop5.autoload.php) para localizar e incluir los archivos de las clases requiridas. Proporciona un cargador de clases de alto rendimiento que cumple con el [estandard PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md). El cargador se instala cuando incluyes el archivo `Yii.php`. diff --git a/docs/guide-es/concept-di-container.md b/docs/guide-es/concept-di-container.md index 3b37fa9..d53c381 100644 --- a/docs/guide-es/concept-di-container.md +++ b/docs/guide-es/concept-di-container.md @@ -14,7 +14,7 @@ de ID: * Inyección de constructores; * Inyección de setters y propiedades; -* Inyección de [llamadas de retorno PHP](https://secure.php.net/manual/es/language.types.callable.php); +* Inyección de [llamadas de retorno PHP](https://www.php.net/manual/es/language.types.callable.php); ### Inyección de Constructores diff --git a/docs/guide-es/concept-events.md b/docs/guide-es/concept-events.md index 4f7f7ce..664d610 100644 --- a/docs/guide-es/concept-events.md +++ b/docs/guide-es/concept-events.md @@ -13,7 +13,7 @@ Gestor de Eventos ----------------- Un gestor de eventos es una -[llamada de retorno PHP (PHP callback)](https://secure.php.net/manual/es/language.types.callable.php) que se ejecuta cuando se +[llamada de retorno PHP (PHP callback)](https://www.php.net/manual/es/language.types.callable.php) que se ejecuta cuando se lanza el evento al que corresponde. Se puede usar cualquier llamada de retorno de las enumeradas a continuación: - una función de PHP global especificada como una cadena de texto (sin paréntesis), ej. `'trim'`; diff --git a/docs/guide-es/db-dao.md b/docs/guide-es/db-dao.md index 3fc87a8..8e831a1 100644 --- a/docs/guide-es/db-dao.md +++ b/docs/guide-es/db-dao.md @@ -1,7 +1,7 @@ Objetos de Acceso a Bases de Datos ================================== -Construido sobre [PDO](https://secure.php.net/manual/es/book.pdo.php), Yii DAO (Objetos de Acceso a Bases de Datos) proporciona una +Construido sobre [PDO](https://www.php.net/manual/es/book.pdo.php), Yii DAO (Objetos de Acceso a Bases de Datos) proporciona una API orientada a objetos para el acceso a bases de datos relacionales. Es el fundamento para otros métodos de acceso a bases de datos más avanzados, incluyendo el [constructor de consultas](db-query-builder.md) y [active record](db-active-record.md). @@ -60,7 +60,7 @@ Puedes acceder a la conexión DB mediante la expresión `Yii::$app->db`. Cuando configuras una conexión DB, deberías siempre especificar el Nombre de Origen de Datos (DSN) mediante la propiedad [[yii\db\Connection::dsn|dsn]]. El formato del DSN varia para cada diferente base de datos. Por favor consulte el -[manual de PHP](https://secure.php.net/manual/es/function.PDO-construct.php) para más detalles. Abajo están algunos ejemplos: +[manual de PHP](https://www.php.net/manual/es/function.PDO-construct.php) para más detalles. Abajo están algunos ejemplos: * MySQL, MariaDB: `mysql:host=localhost;dbname=mydatabase` * SQLite: `sqlite:/path/to/database/file` @@ -185,7 +185,7 @@ $post = $db->createCommand('SELECT * FROM post WHERE id=:id AND status=:status', ->queryOne(); ``` -La vinculación parámetros es implementada mediante [sentencias preparadas (prepared statements)](https://secure.php.net/manual/es/mysqli.quickstart.prepared-statements.php). +La vinculación parámetros es implementada mediante [sentencias preparadas (prepared statements)](https://www.php.net/manual/es/mysqli.quickstart.prepared-statements.php). Además de prevenir ataques de inyección de SQL, también puede mejorar el rendimiento preparando una sola vez una sentencia SQL y ejecutándola múltiples veces con diferentes parámetros. Por ejemplo, diff --git a/docs/guide-es/glossary.md b/docs/guide-es/glossary.md index 7989ac5..63ce5cb 100644 --- a/docs/guide-es/glossary.md +++ b/docs/guide-es/glossary.md @@ -52,7 +52,7 @@ Módulo es una sub-aplicación que contiene elementos MVC en sí mismo, como mod ## namespace -Namespace (espacio de nombres) se refiere a una [característica de PHP](https://secure.php.net/manual/es/language.namespaces.php) activamente utilizada en Yii 2. +Namespace (espacio de nombres) se refiere a una [característica de PHP](https://www.php.net/manual/es/language.namespaces.php) activamente utilizada en Yii 2. # P diff --git a/docs/guide-es/helper-array.md b/docs/guide-es/helper-array.md index ea1bcfc..9e0e869 100644 --- a/docs/guide-es/helper-array.md +++ b/docs/guide-es/helper-array.md @@ -1,7 +1,7 @@ ArrayHelper =========== -Adicionalmente al [rico conjunto de funciones para arrays de PHP](https://secure.php.net/manual/es/book.array.php), el array helper de Yii proporciona +Adicionalmente al [rico conjunto de funciones para arrays de PHP](https://www.php.net/manual/es/book.array.php), el array helper de Yii proporciona métodos estáticos adicionales permitiendo trabajar con arrays de manera más eficiente. @@ -66,7 +66,7 @@ Después de ejecutar el código el `$array` contendrá `['options' => [1, 2]]` y ## Comprobando la Existencia de Claves -`ArrayHelper::keyExists` funciona de la misma manera que [array_key_exists](https://secure.php.net/manual/es/function.array-key-exists.php) +`ArrayHelper::keyExists` funciona de la misma manera que [array_key_exists](https://www.php.net/manual/es/function.array-key-exists.php) excepto que también soporta case-insensitive para la comparación de claves. Por ejemplo, ```php @@ -270,7 +270,7 @@ El tercer argumento es la dirección. En caso de ordenar por una clave podría s direcciones de ordenación. El último argumento es un PHP sort flag que toma los mismos valores que los pasados a -PHP [sort()](https://secure.php.net/manual/es/function.sort.php). +PHP [sort()](https://www.php.net/manual/es/function.sort.php). ## Detectando Tipos de Array @@ -373,7 +373,7 @@ A pesar de que PHP ofrece `in_array()`, este no soporta sub-grupos u objetos de Para ayudar en este tipo de pruebas, [[yii\helpers\ArrayHelper]] provee [[yii\helpers\ArrayHelper::isIn()|isIn()]] y [[yii\helpers\ArrayHelper::isSubset()|isSubset()]] con la misma firma del método -[in_array()](https://secure.php.net/manual/en/function.in-array.php). +[in_array()](https://www.php.net/manual/en/function.in-array.php). ```php // true diff --git a/docs/guide-es/helper-html.md b/docs/guide-es/helper-html.md index a3eac70..d5675f3 100644 --- a/docs/guide-es/helper-html.md +++ b/docs/guide-es/helper-html.md @@ -3,7 +3,7 @@ Clase auxiliar Html (Html helper) Todas las aplicaciones web generan grandes cantidades de marcado HTML (HTML markup). Si el marcado es estático, se puede realizar de forma efectiva -[mezclando PHP y HTML en un mismo archivo](https://secure.php.net/manual/es/language.basic-syntax.phpmode.php) pero cuando se +[mezclando PHP y HTML en un mismo archivo](https://www.php.net/manual/es/language.basic-syntax.phpmode.php) pero cuando se generan dinámicamente empieza a complicarse su gestión sin ayuda extra. Yii ofrece esta ayuda en forma de una clase auxiliar Html que proporciona un conjunto de métodos estáticos para gestionar las etiquetas HTML más comúnmente usadas, sus opciones y contenidos. @@ -96,8 +96,8 @@ eliminara una propiedad, se puede especificar como una cadena de texto. Para que el contenido se muestre correctamente y de forma segura con caracteres especiales HTML el contenido debe ser -codificado. En PHP esto se hace con [htmlspecialchars](https://secure.php.net/manual/es/function.htmlspecialchars.php) y -[htmlspecialchars_decode](https://secure.php.net/manual/es/function.htmlspecialchars-decode.php). El problema con el uso +codificado. En PHP esto se hace con [htmlspecialchars](https://www.php.net/manual/es/function.htmlspecialchars.php) y +[htmlspecialchars_decode](https://www.php.net/manual/es/function.htmlspecialchars-decode.php). El problema con el uso de estos métodos directamente es que se tiene que especificar la codificación y opciones extra cada vez. Ya que las opciones siempre son las mismas y la codificación debe coincidir con la de la aplicación para prevenir problemas de seguridad, Yii proporciona dos métodos simples y compactos: diff --git a/docs/guide-es/intro-upgrade-from-v1.md b/docs/guide-es/intro-upgrade-from-v1.md index 580a904..7a2e5a5 100644 --- a/docs/guide-es/intro-upgrade-from-v1.md +++ b/docs/guide-es/intro-upgrade-from-v1.md @@ -29,15 +29,15 @@ Yii 2.0 requiere PHP 5.4 o mayor, lo que es un gran progreso ya que Yii 1.1 func Como resultado, hay muchas diferencias a nivel del lenguaje a las que deberías prestar atención. Abajo hay un resumen de los mayores cambios en relación a PHP: -- [Namespaces](https://secure.php.net/manual/es/language.namespaces.php). -- [Funciones anónimas](https://secure.php.net/manual/es/functions.anonymous.php). +- [Namespaces](https://www.php.net/manual/es/language.namespaces.php). +- [Funciones anónimas](https://www.php.net/manual/es/functions.anonymous.php). - La sintaxis corta de Arrays `[...elementos...]` es utilizada en vez de `array(...elementos...)`. - Etiquetas cortas de `echo`. Ahora en las vistas se usa ` ------------------------------------------ -Asegúrate de tener instalado la extensión de PHP [PDO](https://secure.php.net/manual/es/book.pdo.php) y el driver +Asegúrate de tener instalado la extensión de PHP [PDO](https://www.php.net/manual/es/book.pdo.php) y el driver de PDO para el motor que estés utilizando (ej. `pdo_mysql` para MySQL). Este es un requisito básico si tu aplicación va a utilizar bases de datos relacionales. diff --git a/docs/guide-es/start-installation.md b/docs/guide-es/start-installation.md index 2a78b79..a685b96 100644 --- a/docs/guide-es/start-installation.md +++ b/docs/guide-es/start-installation.md @@ -97,7 +97,7 @@ Verificando las Instalación --------------------------- Una vez finalizada la instalación, o bien configura tu servidor web (mira la sección siguiente) o utiliza -el [servidor web incluido en PHP](https://secure.php.net/manual/en/features.commandline.webserver.php) ejecutando el siguiente +el [servidor web incluido en PHP](https://www.php.net/manual/en/features.commandline.webserver.php) ejecutando el siguiente comando de consola estando parado en el directorio `web` de la aplicación: ```bash @@ -131,7 +131,7 @@ de PHP satisfaga los requerimientos de Yii. Esto puedes hacerlo usando cualquier ``` Deberías configurar tu instalación de PHP para que satisfaga los requisitos mínimos de Yii. Lo que es más importante, -debes tener PHP 5.4 o mayor. También deberías instalar la [Extensión de PHP PDO](https://secure.php.net/manual/es/pdo.installation.php) +debes tener PHP 5.4 o mayor. También deberías instalar la [Extensión de PHP PDO](https://www.php.net/manual/es/pdo.installation.php) y el correspondiente driver de base de datos (como `pdo_mysql` para bases de datos MySQL), si tu aplicación lo necesitara. @@ -187,7 +187,7 @@ DocumentRoot "path/to/basic/web" ### Configuración Recomendada de Nginx -Para utilizar [Nginx](http://wiki.nginx.org/), debes instalar PHP como un [FPM SAPI](https://secure.php.net/install.fpm). +Para utilizar [Nginx](http://wiki.nginx.org/), debes instalar PHP como un [FPM SAPI](https://www.php.net/install.fpm). Utiliza la siguiente configuración de Nginx, reemplazando `path/to/basic/web` con la ruta real a `basic/web` y `mysite.test` con el hostname real a servir. diff --git a/docs/guide-es/start-prerequisites.md b/docs/guide-es/start-prerequisites.md index bb184ec..d4771f8 100644 --- a/docs/guide-es/start-prerequisites.md +++ b/docs/guide-es/start-prerequisites.md @@ -6,11 +6,11 @@ pero todavía hay algunas cosas que debería aprender antes de empezar con Yii. ## PHP Yii es un _framework_ (base estructurada de desarrollo) en PHP, así que asegúrese de -[leer y comprender la referencia del lenguaje](https://secure.php.net/manual/es/langref.php). +[leer y comprender la referencia del lenguaje](https://www.php.net/manual/es/langref.php). Al desarrollar con Yii deberá escribir código de manera orientada a objetos, así que asegúrese de estar familiarizado con -[clases y objetos](https://secure.php.net/manual/es/language.oop5.basic.php) así como con -[espacios de nombres](https://secure.php.net/manual/es/language.namespaces.php). +[clases y objetos](https://www.php.net/manual/es/language.oop5.basic.php) así como con +[espacios de nombres](https://www.php.net/manual/es/language.namespaces.php). ## Programación orientada a objetos diff --git a/docs/guide-es/structure-applications.md b/docs/guide-es/structure-applications.md index bf85cba..5c07fbd 100644 --- a/docs/guide-es/structure-applications.md +++ b/docs/guide-es/structure-applications.md @@ -335,7 +335,7 @@ Puedes encontrar más detalles de esta propiedad en la sección [Internacionaliz #### [[yii\base\Application::timeZone|timeZone]] Esta propiedad es provista como una forma alternativa de definir el `time zone` de PHP por defecto en tiempo de ejecución. -Configurando esta propiedad, escencialmente estás llamando a la función de PHP [date_default_timezone_set()](https://secure.php.net/manual/es/function.date-default-timezone-set.php). +Configurando esta propiedad, escencialmente estás llamando a la función de PHP [date_default_timezone_set()](https://www.php.net/manual/es/function.date-default-timezone-set.php). Por ejemplo: ```php diff --git a/docs/guide-es/structure-models.md b/docs/guide-es/structure-models.md index 5a24142..fdd264d 100644 --- a/docs/guide-es/structure-models.md +++ b/docs/guide-es/structure-models.md @@ -39,8 +39,8 @@ echo $model->name; ``` También se puede acceder a los atributos como se accede a los elementos de un array, gracias al soporte para -[ArrayAccess](https://secure.php.net/manual/es/class.arrayaccess.php) y -[ArrayIterator](https://secure.php.net/manual/es/class.arrayiterator.php) que brinda [[yii\base\Model]]: +[ArrayAccess](https://www.php.net/manual/es/class.arrayaccess.php) y +[ArrayIterator](https://www.php.net/manual/es/class.arrayiterator.php) que brinda [[yii\base\Model]]: ```php $model = new \app\models\ContactForm; diff --git a/docs/guide-es/structure-widgets.md b/docs/guide-es/structure-widgets.md index 87273a0..75b9f90 100644 --- a/docs/guide-es/structure-widgets.md +++ b/docs/guide-es/structure-widgets.md @@ -72,7 +72,7 @@ Hay que tener en cuenta que, a diferencia de [[yii\base\Widget::widget()]] que d representación resultante del _widget_, el método [[yii\base\Widget::begin()]] devuelve una instancia del _widget_, que se puede usar para generar el contenido del _widget_. -> Nota: Algunos _widgets_ utilizan un [búfer de salida](https://secure.php.net/manual/es/book.outcontrol.php) +> Nota: Algunos _widgets_ utilizan un [búfer de salida](https://www.php.net/manual/es/book.outcontrol.php) > para ajustar el contenido rodeado al invocar [[yii\base\Widget::end()]]. Por este motivo se espera > que las llamadas a [[yii\base\Widget::begin()]] y [[yii\base\Widget::end()]] tengan lugar en el > mismo fichero de vista. diff --git a/docs/guide-es/tutorial-core-validators.md b/docs/guide-es/tutorial-core-validators.md index cbb93f9..95cc530 100644 --- a/docs/guide-es/tutorial-core-validators.md +++ b/docs/guide-es/tutorial-core-validators.md @@ -96,7 +96,7 @@ Opcionalmente, puede convertir el valor de entrada en una fecha/tiempo UNIX y al - `format`: el formato fecha/tiempo en el que debe estar el valor a ser validado. Esto tiene que ser un patrón fecha/tiempo descrito en [manual ICU](http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax). - Alternativamente tiene que ser una cadena con el prefijo `php:` representando un formato que ha de ser reconocido por la clase `Datetime` de PHP. Por favor, refiérase a sobre los formatos soportados. + Alternativamente tiene que ser una cadena con el prefijo `php:` representando un formato que ha de ser reconocido por la clase `Datetime` de PHP. Por favor, refiérase a sobre los formatos soportados. Si no tiene ningún valor, ha de coger el valor de `Yii::$app->formatter->dateFormat`. - `timestampAttribute`: el nombre del atributo al cual este validador puede asignar el fecha/hora UNIX convertida desde la entrada fecha/hora. diff --git a/docs/guide-fr/caching-data.md b/docs/guide-fr/caching-data.md index 1763ef3..db554b0 100644 --- a/docs/guide-fr/caching-data.md +++ b/docs/guide-fr/caching-data.md @@ -91,15 +91,15 @@ Comme tous les composants de mise en cache prennent en charge le même jeux d'AP Yii prend en charge un large panel de supports de stockage pour cache. Ce qui suit est un résumé : -* [[yii\caching\ApcCache]]: utilise l'extension PHP [APC](https://secure.php.net/manual/en/book.apc.php). Cette option peut être considérée comme la plus rapide lorsqu'on utilise un cache pour une grosse application centralisée (p. ex. un serveur, pas d'équilibrage de charge dédié, etc.). +* [[yii\caching\ApcCache]]: utilise l'extension PHP [APC](https://www.php.net/manual/en/book.apc.php). Cette option peut être considérée comme la plus rapide lorsqu'on utilise un cache pour une grosse application centralisée (p. ex. un serveur, pas d'équilibrage de charge dédié, etc.). * [[yii\caching\DbCache]]: utilise une table de base de données pour stocker les données en cache. Pour utiliser ce cache, vous devez créer une table comme spécifié dans [[yii\caching\DbCache::cacheTable]]. * [[yii\caching\DummyCache]]: tient lieu de cache à remplacer qui n'assure pas de mise en cache réelle. Le but de ce composant est de simplifier le code qui a besoin de vérifier la disponibilité du cache. Par exemple, lors du développement ou si le serveur ne dispose pas de la prise en charge d'un cache, vous pouvez configurer un composant de mise en cache pour qu'il utilise ce cache. Lorsque la prise en charge réelle de la mise en cache est activée, vous pouvez basculer sur le composant de mise en cache correspondant. Dans les deux cas, vous pouvez utiliser le même code `Yii::$app->cache->get($key)` pour essayer de retrouver les données du cache sans vous préoccuper du fait que `Yii::$app->cache` puisse être `null`. * [[yii\caching\FileCache]]: utilise des fichiers standards pour stocker les données en cache. Cela est particulièrement adapté à la mise en cache de gros blocs de données, comme le contenu d'une page. -* [[yii\caching\MemCache]]: utilise le [memcache](https://secure.php.net/manual/en/book.memcache.php) PHP et l'extension [memcached](https://secure.php.net/manual/en/book.memcached.php). Cette option peut être considérée comme la plus rapide lorsqu'on utilise un cache dans des applications distribuées (p. ex. avec plusieurs serveurs, l'équilibrage de charge, etc.). +* [[yii\caching\MemCache]]: utilise le [memcache](https://www.php.net/manual/en/book.memcache.php) PHP et l'extension [memcached](https://www.php.net/manual/en/book.memcached.php). Cette option peut être considérée comme la plus rapide lorsqu'on utilise un cache dans des applications distribuées (p. ex. avec plusieurs serveurs, l'équilibrage de charge, etc.). * [[yii\redis\Cache]]: met en œuvre un composant de mise en cache basé sur un stockage clé-valeur [Redis](http://redis.io/) (une version de redis égale ou supérieure à 2.6.12 est nécessaire). * [[yii\caching\WinCache]]: utilise le [WinCache](http://iis.net/downloads/microsoft/wincache-extension) PHP - ([voir aussi l'extension](https://secure.php.net/manual/en/book.wincache.php)). + ([voir aussi l'extension](https://www.php.net/manual/en/book.wincache.php)). * [[yii\caching\XCache]] _(deprecated)_: utilise l'extension PHP [XCache](http://xcache.lighttpd.net/). * [[yii\caching\ZendDataCache]] _(deprecated)_: utilise le [cache de données Zend](http://files.zend.com/help/Zend-Server-6/zend-server.htm#data_cache_component.htm) diff --git a/docs/guide-fr/caching-http.md b/docs/guide-fr/caching-http.md index 10ac1bc..212f567 100644 --- a/docs/guide-fr/caching-http.md +++ b/docs/guide-fr/caching-http.md @@ -100,7 +100,7 @@ Cache-Control: public, max-age=3600 ## Propriété "Session Cache Limiter" -Lorsqu'une page utilise une session, PHP envoie automatiquement quelques entêtes HTTP relatifs à la mise en cache comme spécifié dans la propriété `session.cache_limiter` de PHP INI. Ces entêtes peuvent interférer ou désactiver la mise en cache que vous voulez obtenir de `HttpCache`. Pour éviter ce problème, par défaut, `HttpCache` désactive l'envoi de ces entêtes automatiquement. Si vous désirez modifier ce comportement, vous devez configurer la propriété [[yii\filters\HttpCache::sessionCacheLimiter]]. Cette propriété accepte une chaîne de caractères parmi `public`, `private`, `private_no_expire` et `nocache`. Reportez-vous au manuel de PHP à propos de [session_cache_limiter()](https://secure.php.net/manual/en/function.session-cache-limiter.php) pour des explications sur ces valeurs. +Lorsqu'une page utilise une session, PHP envoie automatiquement quelques entêtes HTTP relatifs à la mise en cache comme spécifié dans la propriété `session.cache_limiter` de PHP INI. Ces entêtes peuvent interférer ou désactiver la mise en cache que vous voulez obtenir de `HttpCache`. Pour éviter ce problème, par défaut, `HttpCache` désactive l'envoi de ces entêtes automatiquement. Si vous désirez modifier ce comportement, vous devez configurer la propriété [[yii\filters\HttpCache::sessionCacheLimiter]]. Cette propriété accepte une chaîne de caractères parmi `public`, `private`, `private_no_expire` et `nocache`. Reportez-vous au manuel de PHP à propos de [session_cache_limiter()](https://www.php.net/manual/en/function.session-cache-limiter.php) pour des explications sur ces valeurs. ## Implications SEO diff --git a/docs/guide-fr/db-active-record.md b/docs/guide-fr/db-active-record.md index 689e638..1c1016e 100644 --- a/docs/guide-fr/db-active-record.md +++ b/docs/guide-fr/db-active-record.md @@ -472,9 +472,9 @@ ou la méthode [[yii\db\ActiveRecord::getOldAttribute()|getOldAttribute()]]. Cela est souvent le cas lorsque le modèle reçoit des entrées utilisateur de formulaires HTML ou chacune des valeurs est représentée par une chaîne de caractères. Pour garantir le type correct pour p. ex. des valeurs entières, vous devez appliquer un [filtre de validation](input-validation.md#data-filtering): > `['attributeName', 'filter', 'filter' => 'intval']`. -Cela fonctionne pour toutes les fonctions de transformation de type de PHP comme [intval()](https://secure.php.net/manual/en/function.intval.php), -[floatval()](https://secure.php.net/manual/en/function.floatval.php), -[boolval](https://secure.php.net/manual/en/function.boolval.php), etc... +Cela fonctionne pour toutes les fonctions de transformation de type de PHP comme [intval()](https://www.php.net/manual/en/function.intval.php), +[floatval()](https://www.php.net/manual/en/function.floatval.php), +[boolval](https://www.php.net/manual/en/function.boolval.php), etc... ### Valeurs d'attribut par défaut diff --git a/docs/guide-fr/db-query-builder.md b/docs/guide-fr/db-query-builder.md index 24c8f8a..29450e5 100644 --- a/docs/guide-fr/db-query-builder.md +++ b/docs/guide-fr/db-query-builder.md @@ -771,7 +771,7 @@ foreach ($query->each() as $username => $user) { #### Limitations des requêtes par lots dans MySQL La mise en œuvre des requêtes par lots de MySQL s'appuie sur la bibliothèque du pilote PDO. Par défaut, les requêtes MySQL sont -[`mises en tampon`](https://secure.php.net/manual/en/mysqlinfo.concepts.buffering.php). +[`mises en tampon`](https://www.php.net/manual/en/mysqlinfo.concepts.buffering.php). Cela empêche d'utiliser le curseur pour obtenir les données, parce que cela n'empêche pas le jeu résultant complet d'être chargé dans la mémoire du client par le pilote. diff --git a/docs/guide-fr/helper-array.md b/docs/guide-fr/helper-array.md index c8ccd69..a4029de 100644 --- a/docs/guide-fr/helper-array.md +++ b/docs/guide-fr/helper-array.md @@ -1,7 +1,7 @@ Classe assistante ArrayHelper ============================= -En plus du jeu riche de [fonctions de tableaux](https://secure.php.net/manual/en/book.array.php) qu'offre PHP, la classe assistante traitant les tableaux dans Yii fournit des méthodes statiques supplémentaires qui vous permettent de traiter les tableaux avec plus d'efficacité. +En plus du jeu riche de [fonctions de tableaux](https://www.php.net/manual/en/book.array.php) qu'offre PHP, la classe assistante traitant les tableaux dans Yii fournit des méthodes statiques supplémentaires qui vous permettent de traiter les tableaux avec plus d'efficacité. ## Obtention de valeurs @@ -61,7 +61,7 @@ Après exécution du code, `$array` contiendra `['options' => [1, 2]]` et `$type ## Tester l'existence des clés -`ArrayHelper::keyExists` fonctionne comme [array_key_exists](https://secure.php.net/manual/en/function.array-key-exists.php) sauf qu'elle prend également en charge la comparaison de clés insensible à la casse. Par exemple, +`ArrayHelper::keyExists` fonctionne comme [array_key_exists](https://www.php.net/manual/en/function.array-key-exists.php) sauf qu'elle prend également en charge la comparaison de clés insensible à la casse. Par exemple, ```php $data1 = [ @@ -252,7 +252,7 @@ ArrayHelper::multisort($data, function($item) { Le troisième argument précise la direction. Dans le cas d'un tri selon une clé unique, il s'agit soit de `SORT_ASC`, soit de `SORT_DESC`. Si le tri se fait selon des valeurs multiples, vous pouvez préciser des directions de tri différentes pour chacune des clés en présentant ces directions sous forme de tableau. -Le dernier argument est une option de tri de PHP qui peut prendre les mêmes valeurs que celles acceptées par la fonction [sort()](https://secure.php.net/manual/en/function.sort.php) de PHP. +Le dernier argument est une option de tri de PHP qui peut prendre les mêmes valeurs que celles acceptées par la fonction [sort()](https://www.php.net/manual/en/function.sort.php) de PHP. ## Détection des types de tableau @@ -284,7 +284,7 @@ Seules les valeurs sont encodées par défaut. En passant un deuxième argument ## Fusion de tableaux -La fonction [[yii\helpers\ArrayHelper::merge()|ArrayHelper::merge()]] vous permet de fusionner deux, ou plus, tableaux en un seul de manière récursive. Si chacun des tableaux possède un élément avec la même chaîne clé valeur, le dernier écrase le premier (ce qui est un fonctionnement différent de [array_merge_recursive()](https://secure.php.net/manual/en/function.array-merge-recursive.php)). +La fonction [[yii\helpers\ArrayHelper::merge()|ArrayHelper::merge()]] vous permet de fusionner deux, ou plus, tableaux en un seul de manière récursive. Si chacun des tableaux possède un élément avec la même chaîne clé valeur, le dernier écrase le premier (ce qui est un fonctionnement différent de [array_merge_recursive()](https://www.php.net/manual/en/function.array-merge-recursive.php)). La fusion récursive est entreprise si les deux tableaux possèdent un élément de type tableau avec la même clé. Pour des éléments dont la clé est un entier, les éléments du deuxième tableau sont ajoutés aux éléments du premier tableau. Vous pouvez utiliser l'objet [[yii\helpers\UnsetArrayValue]] pour supprimer la valeur du premier tableau ou [[yii\helpers\ReplaceArrayValue]] pour forcer le remplacement de la première valeur au lieu de la fusion récursive. Par exemple : @@ -391,7 +391,7 @@ Il est possible de fournir une manière par défaut de convertir un objet en tab Souvent, vous devez savoir si un élément se trouve dans un tableau ou si un jeu d'éléments est un sous-ensemble d'un autre. Bien que PHP offre la fonction `in_array()`, cette dernière ne prend pas en charge les sous-ensembles ou les objets `\Traversable`. Pour faciliter ce genre de tests, [[yii\helpers\ArrayHelper]] fournit les méthodes [[yii\helpers\ArrayHelper::isIn()|isIn()]] -et [[yii\helpers\ArrayHelper::isSubset()|isSubset()]] avec la même signature que [in_array()](https://secure.php.net/manual/en/function.in-array.php). +et [[yii\helpers\ArrayHelper::isSubset()|isSubset()]] avec la même signature que [in_array()](https://www.php.net/manual/en/function.in-array.php). ```php // true diff --git a/docs/guide-fr/helper-html.md b/docs/guide-fr/helper-html.md index c494aed..101a582 100644 --- a/docs/guide-fr/helper-html.md +++ b/docs/guide-fr/helper-html.md @@ -1,7 +1,7 @@ Classe assistante Html ====================== -Toutes les applications Web génèrent un grand nombre de balises HTML. Si le code HTML est statique, il peut être créé efficacement sous forme de [mélange de code PHP et de code HTML dans un seul fichier](https://secure.php.net/manual/en/language.basic-syntax.phpmode.php), mais lorsqu'il est généré dynamiquement, cela commence à être compliqué à gérer sans une aide supplémentaire. Yii fournit une telle aide sous la forme de la classe assistante Html, qui offre un jeu de méthodes statiques pour manipuler les balises Html les plus courantes, leurs options et leur contenu. +Toutes les applications Web génèrent un grand nombre de balises HTML. Si le code HTML est statique, il peut être créé efficacement sous forme de [mélange de code PHP et de code HTML dans un seul fichier](https://www.php.net/manual/en/language.basic-syntax.phpmode.php), mais lorsqu'il est généré dynamiquement, cela commence à être compliqué à gérer sans une aide supplémentaire. Yii fournit une telle aide sous la forme de la classe assistante Html, qui offre un jeu de méthodes statiques pour manipuler les balises Html les plus courantes, leurs options et leur contenu. > Note: si votre code HTML est presque statique, il vaut mieux utiliser HTML directement. Il n'est pas nécessaire d'envelopper tout dans des appels aux méthodes de la classe assistante Html. @@ -134,8 +134,8 @@ accepte un tableau de propriétés à retirer. S'il s'agit d'une propriété uni ### Encodage et décodage du contenu -Pour que le contenu puisse être affiché en HTML de manière propre et en toute sécurité, les caractères spéciaux du contenu doivent être encodés. En PHP, cela s'obtient avec [htmlspecialchars](https://secure.php.net/manual/en/function.htmlspecialchars.php) et -[htmlspecialchars_decode](https://secure.php.net/manual/en/function.htmlspecialchars-decode.php). Le problème rencontré en utilisant ces méthodes directement est que vous devez spécifier l'encodage et des options supplémentaires tout le temps. Comme ces options restent toujours les mêmes et que l'encodage doit correspondre à celui de l'application pour éviter les problèmes de sécurité, Yii fournit deux méthodes compactes et faciles à utiliser : +Pour que le contenu puisse être affiché en HTML de manière propre et en toute sécurité, les caractères spéciaux du contenu doivent être encodés. En PHP, cela s'obtient avec [htmlspecialchars](https://www.php.net/manual/en/function.htmlspecialchars.php) et +[htmlspecialchars_decode](https://www.php.net/manual/en/function.htmlspecialchars-decode.php). Le problème rencontré en utilisant ces méthodes directement est que vous devez spécifier l'encodage et des options supplémentaires tout le temps. Comme ces options restent toujours les mêmes et que l'encodage doit correspondre à celui de l'application pour éviter les problèmes de sécurité, Yii fournit deux méthodes compactes et faciles à utiliser : ```php $userName = Html::encode($user->name); diff --git a/docs/guide-fr/intro-upgrade-from-v1.md b/docs/guide-fr/intro-upgrade-from-v1.md index 3dfcc94..096b39e 100644 --- a/docs/guide-fr/intro-upgrade-from-v1.md +++ b/docs/guide-fr/intro-upgrade-from-v1.md @@ -31,15 +31,15 @@ Yii 2.0 requiert PHP 5.4 ou plus, ce qui est une grosse amélioration par rappor Par conséquent, il y a beaucoup de différences au niveau du langage auxquelles vous devriez prêter attention. Voici un résumé des principaux changements concernant PHP: -- [Espaces de noms](https://secure.php.net/manual/fr/language.namespaces.php). -- [Fonctions anonymes](https://secure.php.net/manual/fr/functions.anonymous.php). +- [Espaces de noms](https://www.php.net/manual/fr/language.namespaces.php). +- [Fonctions anonymes](https://www.php.net/manual/fr/functions.anonymous.php). - Syntaxe courte pour les tableaux : `[...éléments...]` est utilisé au lieu de `array(...éléments...)`. - Syntaxe courte pour echo : ` [ @@ -172,7 +172,7 @@ echo Yii::$app->formatter->asDate('2014-01-01'); // affiche : 1 января 20 Par défaut, la [[yii\i18n\Formatter::locale|locale]] est déterminée par la valeur de [[yii\base\Application::language]]. Vous pouvez la redéfinir en définissant la propriété [[yii\i18n\Formatter::locale]] explicitement. -> Note: le formateur de Yii a besoin de l'[extension intl de PHP](https://secure.php.net/manual/en/book.intl.php) pour prendre en charge la localisation des formats de données. Parce que différentes versions de la bibliothèque ICU compilées par PHP produisent des résultats de formatage différents, il est recommandé que vous utilisiez la même version de la bibliothèque ICU pour tous vos environnements. Pour plus de détails, reportez-vous au tutoriel [Configuration de votre environnement PHP pour l'internationalisation](tutorial-i18n.md#setup-environment). +> Note: le formateur de Yii a besoin de l'[extension intl de PHP](https://www.php.net/manual/en/book.intl.php) pour prendre en charge la localisation des formats de données. Parce que différentes versions de la bibliothèque ICU compilées par PHP produisent des résultats de formatage différents, il est recommandé que vous utilisiez la même version de la bibliothèque ICU pour tous vos environnements. Pour plus de détails, reportez-vous au tutoriel [Configuration de votre environnement PHP pour l'internationalisation](tutorial-i18n.md#setup-environment). > > Si l'extension intl extension n'est pas installée, les données ne sont pas localisées. > diff --git a/docs/guide-fr/security-passwords.md b/docs/guide-fr/security-passwords.md index 6380a5a..3cf9b3f 100644 --- a/docs/guide-fr/security-passwords.md +++ b/docs/guide-fr/security-passwords.md @@ -5,7 +5,7 @@ La plupart des développeurs savent que les mots de passe ne peuvent pas être s Pour apporter une sécurité améliorée pour les mots de passe des utilisateurs, même dans le pire des scénario (une brèche est ouverte dans votre application), vous devez utiliser des algorithmes de hachage qui résistent aux attaques en force brute. Le choix le meilleur couramment utilisé est `bcrypt`. -En PHP, vous pouvez créer une valeur de hachage `bcrypt` à l'aide de la [fonction crypt](https://secure.php.net/manual/en/function.crypt.php). Yii fournit deux fonctions d'aide qui facilitent l'utilisation de `crypt` pour générer et vérifier des valeurs de hachage de manière sure. +En PHP, vous pouvez créer une valeur de hachage `bcrypt` à l'aide de la [fonction crypt](https://www.php.net/manual/en/function.crypt.php). Yii fournit deux fonctions d'aide qui facilitent l'utilisation de `crypt` pour générer et vérifier des valeurs de hachage de manière sure. Quand un utilisateur fournit un mot de passe pour la première fois (p. ex. à l'enregistrement), le mot de passe doit être haché : diff --git a/docs/guide-fr/start-databases.md b/docs/guide-fr/start-databases.md index f114415..7746d40 100644 --- a/docs/guide-fr/start-databases.md +++ b/docs/guide-fr/start-databases.md @@ -53,7 +53,7 @@ Configurer une Connexion à la BDD --------------------------- Avant de continuer, vérifiez que vous avez installé à la fois l'extension PHP -[PDO](https://secure.php.net/manual/fr/book.pdo.php) et le pilote PDO pour la base de données que vous utilisez (c'est +[PDO](https://www.php.net/manual/fr/book.pdo.php) et le pilote PDO pour la base de données que vous utilisez (c'est à dire `pdo_mysql` pour MySQL). C'est une exigence de base si votre application utilise une base de données relationnelle. Une fois ces éléments installés, ouvrez le fichier `config/db.php` et modifiez les paramètres pour qu'ils correspondent à votre base de données. Par défaut, le fichier contient ce qui suit : diff --git a/docs/guide-fr/start-installation.md b/docs/guide-fr/start-installation.md index 59db131..1058b9b 100644 --- a/docs/guide-fr/start-installation.md +++ b/docs/guide-fr/start-installation.md @@ -115,7 +115,7 @@ Afin d'empêcher l'installation des « assets » via Composer, ajoutez les lig Vérifier l'installation ----------------------- -Après l'installation, vous pouvez, soit configurer votre serveur Web (voir section suivante), soit utiliser le [serveur PHP web incorporé](https://secure.php.net/manual/fr/features.commandline.webserver.php) en utilisant la commande en console suivante depuis le dossier racine de votre projet : +Après l'installation, vous pouvez, soit configurer votre serveur Web (voir section suivante), soit utiliser le [serveur PHP web incorporé](https://www.php.net/manual/fr/features.commandline.webserver.php) en utilisant la commande en console suivante depuis le dossier racine de votre projet : ```bash php yii serve @@ -145,7 +145,7 @@ Vous devriez voir dans votre navigateur la page ci-dessus. Sinon, merci de véri php requirements.php ``` -Vous devez configurer votre installation de PHP afin qu'elle réponde aux exigences minimales de Yii. Le plus important étant que vous ayez PHP 5.4 ou plus, idéalement PHP 7. Si votre application a besoin d'une base de données, vous devez également installer l'[extension PHP PDO](https://secure.php.net/manual/fr/pdo.installation.php) ainsi qu'un pilote correspondant à votre système de base de données (par exemple `pdo_mysql` pour MySQL). +Vous devez configurer votre installation de PHP afin qu'elle réponde aux exigences minimales de Yii. Le plus important étant que vous ayez PHP 5.4 ou plus, idéalement PHP 7. Si votre application a besoin d'une base de données, vous devez également installer l'[extension PHP PDO](https://www.php.net/manual/fr/pdo.installation.php) ainsi qu'un pilote correspondant à votre système de base de données (par exemple `pdo_mysql` pour MySQL). Configuration du serveur Web @@ -194,7 +194,7 @@ DocumentRoot "path/to/basic/web" ### Configuration Nginx recommandée -Pour utiliser Nginx, vous devez avoir installé PHP en utilisant [FPM SAPI](https://secure.php.net/install.fpm). +Pour utiliser Nginx, vous devez avoir installé PHP en utilisant [FPM SAPI](https://www.php.net/install.fpm). Utilisez la configuration Nginx suivante, en remplaçant `path/to/basic/web` par le chemin vers le dossier `basic/web` et `mysite.test` par le nom d'hôte de votre serveur. ```nginx diff --git a/docs/guide-fr/start-prerequisites.md b/docs/guide-fr/start-prerequisites.md index c760d12..c02df9b 100644 --- a/docs/guide-fr/start-prerequisites.md +++ b/docs/guide-fr/start-prerequisites.md @@ -4,8 +4,8 @@ La courbe d'apprentissage de Yii n’est pas aussi raide que celle des autres fr ## PHP -Yii un framework (base structurée de développement) en PHP. C’est pourquoi vous devez vous assurer de [maîtriser ce langage en comprenant sa référence](https://secure.php.net/manual/fr/langref.php). -Lors de votre développement avec Yii, vous écrirez du code dans le style « orienté objet ». Vous devez donc être familiarisé avec les [Classes et Objets](https://secure.php.net/manual/fr/language.oop5.basic.php), ainsi qu'avec les [espaces de noms](https://secure.php.net/manual/fr/language.namespaces.php). +Yii un framework (base structurée de développement) en PHP. C’est pourquoi vous devez vous assurer de [maîtriser ce langage en comprenant sa référence](https://www.php.net/manual/fr/langref.php). +Lors de votre développement avec Yii, vous écrirez du code dans le style « orienté objet ». Vous devez donc être familiarisé avec les [Classes et Objets](https://www.php.net/manual/fr/language.oop5.basic.php), ainsi qu'avec les [espaces de noms](https://www.php.net/manual/fr/language.namespaces.php). ## Programmation orientée Objet diff --git a/docs/guide-fr/structure-applications.md b/docs/guide-fr/structure-applications.md index 60bc43c..3814445 100644 --- a/docs/guide-fr/structure-applications.md +++ b/docs/guide-fr/structure-applications.md @@ -306,7 +306,7 @@ Pour plus d'informations sur cette propriété, reportez-vous à la section [Int Cette propriété est fournie comme une manière alternative de définir le fuseau horaire par défaut au moment de l'exécution du script PHP. En configurant cette propriété, vous ne faites essentiellement qu'appeler la fonction PHP -[date_default_timezone_set()](https://secure.php.net/manual/en/function.date-default-timezone-set.php). Par exemple : +[date_default_timezone_set()](https://www.php.net/manual/en/function.date-default-timezone-set.php). Par exemple : ```php [ diff --git a/docs/guide-fr/structure-models.md b/docs/guide-fr/structure-models.md index f6186a7..74bdab0 100644 --- a/docs/guide-fr/structure-models.md +++ b/docs/guide-fr/structure-models.md @@ -31,7 +31,7 @@ $model->name = 'example'; echo $model->name; ``` -Vous pouvez également accéder aux attributs comme aux éléments d'un tableau, grâce à la prise en charge de [ArrayAccess](https://secure.php.net/manual/en/class.arrayaccess.php) et [ArrayIterator](https://secure.php.net/manual/en/class.arrayiterator.php) +Vous pouvez également accéder aux attributs comme aux éléments d'un tableau, grâce à la prise en charge de [ArrayAccess](https://www.php.net/manual/en/class.arrayaccess.php) et [ArrayIterator](https://www.php.net/manual/en/class.arrayiterator.php) par la classe [[yii\base\Model]]: ```php diff --git a/docs/guide-fr/structure-widgets.md b/docs/guide-fr/structure-widgets.md index beef837..ececdee 100644 --- a/docs/guide-fr/structure-widgets.md +++ b/docs/guide-fr/structure-widgets.md @@ -52,7 +52,7 @@ use yii\helpers\Html; Notez que contrairement à la méthode [[yii\base\Widget::widget()]] qui retourne le résultat du rendu d'un objet graphique, la méthode [[yii\base\Widget::begin()]] retourne une instance de l'objet graphique que vous pouvez utiliser pour construire le contenu de l'objet d'interface. -> Note: quelques objets graphiques utilisent [la mise en tampon de sortie](https://secure.php.net/manual/en/book.outcontrol.php) +> Note: quelques objets graphiques utilisent [la mise en tampon de sortie](https://www.php.net/manual/en/book.outcontrol.php) > pour ajuster le contenu inclus quand la méthode [[yii\base\Widget::end()]] est appelée. > Pour cette raison, l'appel des méthodes [[yii\base\Widget::begin()]] et > [[yii\base\Widget::end()]] est attendu dans le même fichier de vue. diff --git a/docs/guide-fr/tutorial-i18n.md b/docs/guide-fr/tutorial-i18n.md index 0648f29..df2eb0b 100644 --- a/docs/guide-fr/tutorial-i18n.md +++ b/docs/guide-fr/tutorial-i18n.md @@ -149,7 +149,7 @@ $price = 100; echo \Yii::t('app', 'Price: {0,number,currency}', $price); ``` -> Note: le formatage des valeurs de remplacement nécessite l'installation de [extension intl de PHP](https://secure.php.net/manual/en/intro.intl.php). +> Note: le formatage des valeurs de remplacement nécessite l'installation de [extension intl de PHP](https://www.php.net/manual/en/intro.intl.php). Vous pouvez utiliser, soit la forme raccourcie, soit la forme complète pour spécifier une valeur à remplacer avec un format : ``` @@ -637,9 +637,9 @@ Reportez-vous à la section [Formatage des données](output-formatting.md) pour ## Configuration de l'environnement PHP -Yii utilise l'[extension intl de PHP](https://secure.php.net/manual/en/book.intl.php) pour fournir la plupart de ses fonctionnalités d'internationalisation, telles que le formatage des dates et des nombres de la classe [[yii\i18n\Formatter]] et le formatage des messages de la classe [[yii\i18n\MessageFormatter]]. +Yii utilise l'[extension intl de PHP](https://www.php.net/manual/en/book.intl.php) pour fournir la plupart de ses fonctionnalités d'internationalisation, telles que le formatage des dates et des nombres de la classe [[yii\i18n\Formatter]] et le formatage des messages de la classe [[yii\i18n\MessageFormatter]]. Les deux classes fournissent un mécanisme de remplacement lorsque l'extension `intl` n'est pas installée. Néanmoins, l'implémentation du mécanisme de remplacement ne fonctionne bien que quand la langue cible est l'anglais. C'est pourquoi, il est fortement recommandé d'installer `intl` quand c'est nécessaire. -L'[extension intl de PHP](https://secure.php.net/manual/en/book.intl.php) est basée sur la [bibliothèque ICU](http://site.icu-project.org/) qui fournit la base de connaissances et les règles de formatage pour les différentes locales. Des versions différentes d'ICU peuvent conduire à des formatages différents des dates et des nombres. Pour être sûr que votre site Web donne les même résultats dans tous les environnements, il est recommandé d'installer la même version de l'extension `intl` (et par conséquent la même version d'ICU) dans tous les environnements. +L'[extension intl de PHP](https://www.php.net/manual/en/book.intl.php) est basée sur la [bibliothèque ICU](http://site.icu-project.org/) qui fournit la base de connaissances et les règles de formatage pour les différentes locales. Des versions différentes d'ICU peuvent conduire à des formatages différents des dates et des nombres. Pour être sûr que votre site Web donne les même résultats dans tous les environnements, il est recommandé d'installer la même version de l'extension `intl` (et par conséquent la même version d'ICU) dans tous les environnements. Pour savoir quelle version d'ICU est utilisée par PHP, vous pouvez exécuter le script suivant, qui vous restitue la version de PHP et d'ICU en cours d'utilisation. diff --git a/docs/guide-id/intro-upgrade-from-v1.md b/docs/guide-id/intro-upgrade-from-v1.md index fe7daa6..748e091 100644 --- a/docs/guide-id/intro-upgrade-from-v1.md +++ b/docs/guide-id/intro-upgrade-from-v1.md @@ -30,14 +30,14 @@ Akibatnya, ada banyak perbedaan pada tingkat bahasa yang harus Anda perhatikan. Di bawah ini adalah ringkasan perubahan utama mengenai PHP: - [Namespaces](https://www.php.net/manual/en/language.namespaces.php). -- [Anonymous fungsi](https://secure.php.net/manual/en/functions.anonymous.php). +- [Anonymous fungsi](https://www.php.net/manual/en/functions.anonymous.php). - Sintaks array pendek `[... elemen ...]` digunakan sebagai pengganti `array (... elemen ...)`. - Tags echo pendek `<=` digunakan dalam tampilan file. Ini aman digunakan mulai dari PHP 5.4. -- [Class SPL dan interface](https://secure.php.net/manual/en/book.spl.php). -- [Late Static Bindings](https://secure.php.net/manual/en/language.oop5.late-static-bindings.php). -- [Tanggal dan Waktu](https://secure.php.net/manual/en/book.datetime.php). -- [Traits](https://secure.php.net/manual/en/language.oop5.traits.php). -- [Intl](https://secure.php.net/manual/en/book.intl.php). Yii 2.0 menggunakan `ekstensi PHP intl` +- [Class SPL dan interface](https://www.php.net/manual/en/book.spl.php). +- [Late Static Bindings](https://www.php.net/manual/en/language.oop5.late-static-bindings.php). +- [Tanggal dan Waktu](https://www.php.net/manual/en/book.datetime.php). +- [Traits](https://www.php.net/manual/en/language.oop5.traits.php). +- [Intl](https://www.php.net/manual/en/book.intl.php). Yii 2.0 menggunakan `ekstensi PHP intl`   untuk mendukung fitur internasionalisasi. diff --git a/docs/guide-id/intro-yii.md b/docs/guide-id/intro-yii.md index 1c30712..fef7007 100644 --- a/docs/guide-id/intro-yii.md +++ b/docs/guide-id/intro-yii.md @@ -48,5 +48,5 @@ Yii 2.0 memerlukan PHP 5.4.0 atau versi lebih tinggi. Anda dapat menemukan persy dengan menjalankan pengecek persyaratan yang diikutsertakan dalam setiap rilis Yii. Menggunakan Yii memerlukan pengetahuan dasar tentang pemrograman berorientasi objek (OOP), mengingat Yii adalah framework berbasis OOP murni. -Yii 2.0 juga memanfaatkan fitur terbaru dari PHP, seperti [namespace](https://www.php.net/manual/en/language.namespaces.php) dan [traits](https://secure.php.net/manual/en/language.oop5.traits.php). +Yii 2.0 juga memanfaatkan fitur terbaru dari PHP, seperti [namespace](https://www.php.net/manual/en/language.namespaces.php) dan [traits](https://www.php.net/manual/en/language.oop5.traits.php). Memahami konsep-konsep ini akan membantu Anda lebih mudah memahami Yii 2.0. diff --git a/docs/guide-id/start-installation.md b/docs/guide-id/start-installation.md index c3aeda4..b92b7de 100644 --- a/docs/guide-id/start-installation.md +++ b/docs/guide-id/start-installation.md @@ -97,7 +97,7 @@ Memverifikasi Instalasi -------------------------- Setelah instalasi selesai, baik mengkonfigurasi web server Anda (lihat bagian berikutnya) atau menggunakan -[Built-in web server PHP] (https://secure.php.net/manual/en/features.commandline.webserver.php) dengan menjalankan berikut +[Built-in web server PHP] (https://www.php.net/manual/en/features.commandline.webserver.php) dengan menjalankan berikut konsol perintah sementara dalam proyek `web` direktori: ```bash @@ -131,7 +131,7 @@ persyaratan Yii. Anda dapat memeriksa apakah persyaratan minimumnya cocok dengan   ``` Anda harus mengkonfigurasi instalasi PHP Anda sehingga memenuhi persyaratan minimal Yii. Yang paling penting, Anda -harus memiliki PHP versi 5.4 atau lebih. Anda juga harus menginstal [PDO PHP Ekstensi](https://secure.php.net/manual/en/pdo.installation.php) +harus memiliki PHP versi 5.4 atau lebih. Anda juga harus menginstal [PDO PHP Ekstensi](https://www.php.net/manual/en/pdo.installation.php) dan driver database yang sesuai (seperti `pdo_mysql` untuk database MySQL), jika aplikasi Anda membutuhkan database. @@ -187,7 +187,7 @@ DocumentRoot "path/to/basic/web" ### Konfigurasi Nginx yang Direkomendasikan -Untuk menggunakan [Nginx](http://wiki.nginx.org/), Anda harus menginstal PHP sebagai [FPM SAPI](https://secure.php.net/install.fpm). +Untuk menggunakan [Nginx](http://wiki.nginx.org/), Anda harus menginstal PHP sebagai [FPM SAPI](https://www.php.net/install.fpm). Anda dapat menggunakan konfigurasi Nginx berikut, menggantikan `path/to/basic/web` dengan path yang sebenarnya untuk `basic/web` dan `mysite.test` dengan hostname yang sebenarnya untuk server. diff --git a/docs/guide-id/structure-applications.md b/docs/guide-id/structure-applications.md index 1e46f76..e402b73 100644 --- a/docs/guide-id/structure-applications.md +++ b/docs/guide-id/structure-applications.md @@ -356,7 +356,7 @@ Untuk informasi lebih lanjut mengenai _property_ ini bisa anda pelajari pada bag _Property_ ini disediakan sebagai cara alternatif untuk menentukan zona waktu default dari _PHP runtime_. Dengan menentukan _property_ ini, pada dasarnya anda memanggil _function_ PHP -[date_default_timezone_set()](https://secure.php.net/manual/en/function.date-default-timezone-set.php). Sebagi contoh: +[date_default_timezone_set()](https://www.php.net/manual/en/function.date-default-timezone-set.php). Sebagi contoh: ```php [ diff --git a/docs/guide-it/intro-upgrade-from-v1.md b/docs/guide-it/intro-upgrade-from-v1.md index 135a22f..64afe82 100644 --- a/docs/guide-it/intro-upgrade-from-v1.md +++ b/docs/guide-it/intro-upgrade-from-v1.md @@ -29,14 +29,14 @@ Di conseguenza ci sono diverse differenze a livello di linguaggio a cui devi far Di seguito un riepilogo delle principali differenze relative a PHP: - [Namespace](https://www.php.net/manual/en/language.namespaces.php). -- [Funzioni anonime](https://secure.php.net/manual/en/functions.anonymous.php). +- [Funzioni anonime](https://www.php.net/manual/en/functions.anonymous.php). - La sintassi breve per gli array `[...elementi...]` è utilizzabile invece di `array(...elementi...)`. - Le tag brevi per le echo ` -Devi aver installato PHP con il demone [FPM](https://secure.php.net/install.fpm) per usare [Nginx](http://wiki.nginx.org/). +Devi aver installato PHP con il demone [FPM](https://www.php.net/install.fpm) per usare [Nginx](http://wiki.nginx.org/). Usa questa configurazione per Nginx, sostituendo `path/to/basic/web` con il percorso reale di `basic/web` e `mysite.test` con il nome reale del server web. diff --git a/docs/guide-ja/caching-data.md b/docs/guide-ja/caching-data.md index f087361..063bef0 100644 --- a/docs/guide-ja/caching-data.md +++ b/docs/guide-ja/caching-data.md @@ -103,7 +103,7 @@ $data = $cache->getOrSet($key, function () use ($user_id) { Yii はさまざまなキャッシュ・ストレージをサポートしています。以下がその概要です: -* [[yii\caching\ApcCache]]: PHP の [APC](https://secure.php.net/manual/ja/book.apc.php) 拡張モジュールを使用します。 +* [[yii\caching\ApcCache]]: PHP の [APC](https://www.php.net/manual/ja/book.apc.php) 拡張モジュールを使用します。 集中型の重厚なアプリケーションのキャッシュを扱うときには最速の一つとして考えることができます (例えば、サーバが一台で、専用のロード・バランサを持っていない、などの場合)。 * [[yii\caching\DbCache]]: キャッシュされたデータを格納するためにデータベースのテーブルを使用します。 @@ -120,14 +120,14 @@ Yii はさまざまなキャッシュ・ストレージをサポートしてい データを取得するために同じコード `Yii::$app->cache->get($key)` を使用できます。 * [[yii\caching\FileCache]]: キャッシュされたデータを保存するために通常のファイルを使用します。 これはページ・コンテントなど大きなかたまりのデータに特に適しています。 -* [[yii\caching\MemCache]]: PHP の [Memcache](https://secure.php.net/manual/ja/book.memcache.php) と - [Memcached](https://secure.php.net/manual/ja/book.memcached.php) 拡張モジュールを使用します。 +* [[yii\caching\MemCache]]: PHP の [Memcache](https://www.php.net/manual/ja/book.memcache.php) と + [Memcached](https://www.php.net/manual/ja/book.memcached.php) 拡張モジュールを使用します。 分散型のアプリケーションでキャッシュを扱うときには最速の一つとして考えることができます (例えば、複数台のサーバで、ロード・バランサがある、などの場合) 。 * [[yii\redis\Cache]]: [Redis](http://redis.io/) の key-value ストアに基づいてキャッシュ・コンポーネントを実装しています。 (Redis の バージョン 2.6.12 以降が必要とされます) 。 * [[yii\caching\WinCache]]: PHP の [WinCache](http://iis.net/downloads/microsoft/wincache-extension) エクステンションを使用します。 - ([参照リンク](https://secure.php.net/manual/ja/book.wincache.php)) + ([参照リンク](https://www.php.net/manual/ja/book.wincache.php)) * [[yii\caching\XCache]] _(非推奨)_: PHP の [XCache](http://xcache.lighttpd.net/) 拡張モジュールを使用します。 * [[yii\caching\ZendDataCache]] _(非推奨)_: キャッシュ・メディアとして [Zend Data Cache](http://files.zend.com/help/Zend-Server-6/zend-server.htm#data_cache_component.htm) diff --git a/docs/guide-ja/caching-http.md b/docs/guide-ja/caching-http.md index 3bd908c..28af536 100644 --- a/docs/guide-ja/caching-http.md +++ b/docs/guide-ja/caching-http.md @@ -131,7 +131,7 @@ Cache-Control: public, max-age=3600 この問題を防止するために、`HttpCache` はこれらのヘッダの送信をデフォルトで自動的に無効化します。 この動作を変更したい場合は [[yii\filters\HttpCache::sessionCacheLimiter]] プロパティを設定します。 このプロパティには `public`、`private`、`private_no_expire`、そして `nocache` などの文字列の値を使用することができます。 -これらの値についての説明は [session_cache_limiter()](https://secure.php.net/manual/ja/function.session-cache-limiter.php) +これらの値についての説明は [session_cache_limiter()](https://www.php.net/manual/ja/function.session-cache-limiter.php) を参照してください。 diff --git a/docs/guide-ja/concept-autoloading.md b/docs/guide-ja/concept-autoloading.md index e029822..36e1971 100644 --- a/docs/guide-ja/concept-autoloading.md +++ b/docs/guide-ja/concept-autoloading.md @@ -2,7 +2,7 @@ ========================== Yiiは、必要となるすべてのクラス・ファイルを特定してインクルードするにあたり、 -[クラスのオートローディング・メカニズム](https://secure.php.net/manual/ja/language.oop5.autoload.php) を頼りにします。 +[クラスのオートローディング・メカニズム](https://www.php.net/manual/ja/language.oop5.autoload.php) を頼りにします。 Yii は、[PSR-4 標準](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) に準拠した、高性能なクラスのオートローダを提供しています。 このオートローダは、あなたが `Yii.php` ファイルをインクルードするときにインストールされます。 @@ -15,7 +15,7 @@ Yii オートローダを使用する Yii のクラス・オートローダを使用するには、クラスを作成して名前を付けるとき、次の二つの単純なルールに従わなければなりません: -* 各クラスは [名前空間](https://secure.php.net/manual/ja/language.namespaces.php) の下になければなりません (例 `foo\bar\MyClass`) +* 各クラスは [名前空間](https://www.php.net/manual/ja/language.namespaces.php) の下になければなりません (例 `foo\bar\MyClass`) * 各クラスは次のアルゴリズムで決定される個別のファイルに保存されなければなりません: ```php diff --git a/docs/guide-ja/concept-events.md b/docs/guide-ja/concept-events.md index 8d08695..f951559 100644 --- a/docs/guide-ja/concept-events.md +++ b/docs/guide-ja/concept-events.md @@ -13,7 +13,7 @@ Yiiはイベントをサポートするために、 [[yii\base\Component]] と イベント・ハンドラ ------------------ -イベント・ハンドラとは、アタッチされたイベントがトリガされたときに実行される [PHP コールバック](https://secure.php.net/manual/ja/language.types.callable.php) +イベント・ハンドラとは、アタッチされたイベントがトリガされたときに実行される [PHP コールバック](https://www.php.net/manual/ja/language.types.callable.php) です。次のコールバックのいずれも使用可能です: - 文字列で指定されたグローバル PHP 関数 (括弧を除く)、例えば `'trim'`。 diff --git a/docs/guide-ja/db-active-record.md b/docs/guide-ja/db-active-record.md index 0c6c629..b56cc59 100644 --- a/docs/guide-ja/db-active-record.md +++ b/docs/guide-ja/db-active-record.md @@ -473,8 +473,8 @@ $post->updateCounters(['view_count' => 1]); > HTML フォームでは全ての値が文字列として表現されるからです。 > 入力値が正しい型、例えば整数値となることを保証するために、`['attributeName', 'filter', 'filter' => 'intval']` のように > [検証フィルタ](input-validation.md#data-filtering) を適用することが出来ます。 -> このフィルタは、[intval()](https://secure.php.net/manual/ja/function.intval.php), [floatval()](https://secure.php.net/manual/ja/function.floatval.php), -> [boolval](https://secure.php.net/manual/ja/function.boolval.php) など、PHP の全てのタイプキャスト関数で動作します。 +> このフィルタは、[intval()](https://www.php.net/manual/ja/function.intval.php), [floatval()](https://www.php.net/manual/ja/function.floatval.php), +> [boolval](https://www.php.net/manual/ja/function.boolval.php) など、PHP の全てのタイプキャスト関数で動作します。 ### デフォルト属性値 @@ -689,7 +689,7 @@ try { ``` > Note: 上記のコードでは、PHP 5.x と PHP 7.x との互換性のために、二つの catch ブロックを持っています。 -> `\Exception` は PHP 7.0 以降では、[`\Throwable` インタフェイス](https://secure.php.net/manual/ja/class.throwable.php) を実装しています。 +> `\Exception` は PHP 7.0 以降では、[`\Throwable` インタフェイス](https://www.php.net/manual/ja/class.throwable.php) を実装しています。 > 従って、あなたのアプリケーションが PHP 7.0 以上しか使わない場合は、`\Exception` の部分を省略することが出来ます。 第二の方法は、トランザクションのサポートが必要な DB 操作を [[yii\db\ActiveRecord::transactions()]] diff --git a/docs/guide-ja/db-dao.md b/docs/guide-ja/db-dao.md index ac2de5d..70297b5 100644 --- a/docs/guide-ja/db-dao.md +++ b/docs/guide-ja/db-dao.md @@ -1,7 +1,7 @@ データベース・アクセス・オブジェクト ==================================== -[PDO](https://secure.php.net/manual/ja/book.pdo.php) の上に構築された Yii DAO (データベース・アクセス・オブジェクト) は、 +[PDO](https://www.php.net/manual/ja/book.pdo.php) の上に構築された Yii DAO (データベース・アクセス・オブジェクト) は、 リレーショナル・データベースにアクセスするためのオブジェクト指向 API を提供するものです。 これは、データベースにアクセスする他のもっと高度な方法、例えば [クエリ・ビルダ](db-query-builder.md) や [アクティブ・レコード](db-active-record.md) の基礎でもあります。 @@ -62,7 +62,7 @@ return [ DB 接続を構成するときは、つねに [[yii\db\Connection::dsn|dsn]] プロパティによってデータ・ソース名 (DSN) を指定しなければなりません。 DSN の形式はデータベースによってさまざまに異なります。 -詳細は [PHP マニュアル](https://secure.php.net/manual/ja/function.PDO-construct.php) を参照して下さい。下記にいくつかの例を挙げます。 +詳細は [PHP マニュアル](https://www.php.net/manual/ja/function.PDO-construct.php) を参照して下さい。下記にいくつかの例を挙げます。 * MySQL, MariaDB: `mysql:host=localhost;dbname=mydatabase` * SQLite: `sqlite:/path/to/database/file` @@ -190,7 +190,7 @@ $post = Yii::$app->db->createCommand('SELECT * FROM post WHERE id=:id AND status ->queryOne(); ``` -パラメータ・バインディングは [プリペアド・ステートメント](https://secure.php.net/manual/ja/mysqli.quickstart.prepared-statements.php) によって実装されています。 +パラメータ・バインディングは [プリペアド・ステートメント](https://www.php.net/manual/ja/mysqli.quickstart.prepared-statements.php) によって実装されています。 パラメータ・バインディングには、SQL インジェクション攻撃を防止する以外にも、SQL 文を一度だけ準備して異なるパラメータで複数回実行することにより、 パフォーマンスを向上させる効果もあります。例えば、 @@ -384,7 +384,7 @@ try { そして、`throw $e` が、まるでそれをキャッチしなかったかのように、例外を再スローしますので、通常のエラー処理プロセスがその例外の面倒を見ることになります。 > Note: 上記のコードでは、PHP 5.x と PHP 7.x との互換性のために、二つのcatch ブロックを持っています。 -> `\Exception` は PHP 7.0 以降では、[`\Throwable` インタフェイス](https://secure.php.net/manual/ja/class.throwable.php) を実装しています。 +> `\Exception` は PHP 7.0 以降では、[`\Throwable` インタフェイス](https://www.php.net/manual/ja/class.throwable.php) を実装しています。 > 従って、あなたのアプリケーションが PHP 7.0 以上しか使わない場合は、`\Exception` の部分を省略することが出来ます。 diff --git a/docs/guide-ja/db-query-builder.md b/docs/guide-ja/db-query-builder.md index 841744d..8ba3104 100644 --- a/docs/guide-ja/db-query-builder.md +++ b/docs/guide-ja/db-query-builder.md @@ -798,7 +798,7 @@ foreach ($query->each() as $username => $user) { #### MySQL におけるバッチ・クエリの制約 MySQL のバッチ・クエリの実装は PDO ドライバのライブラリに依存しています。デフォルトでは、MySQL のクエリは -[`バッファ・モード`](https://secure.php.net/manual/ja/mysqlinfo.concepts.buffering.php) で実行されます。 +[`バッファ・モード`](https://www.php.net/manual/ja/mysqlinfo.concepts.buffering.php) で実行されます。 このことが、カーソルを使ってデータを取得する目的を挫折させます。というのは、バッファ・モードでは、 ドライバによって結果セット全体がクライアントのメモリに読み込まれることを防止できないからです。 diff --git a/docs/guide-ja/glossary.md b/docs/guide-ja/glossary.md index 61ca7a4..82a6a97 100644 --- a/docs/guide-ja/glossary.md +++ b/docs/guide-ja/glossary.md @@ -58,7 +58,7 @@ Yii の場合は、パーミッションを設定すること、および、ソ ## namespace 名前空間 -名前空間は Yii 2 で積極的に使用されている [PHP 言語機能のひとつ](https://secure.php.net/manual/ja/language.namespaces.php) です。 +名前空間は Yii 2 で積極的に使用されている [PHP 言語機能のひとつ](https://www.php.net/manual/ja/language.namespaces.php) です。 # P diff --git a/docs/guide-ja/helper-array.md b/docs/guide-ja/helper-array.md index 40608ff..2df340a 100644 --- a/docs/guide-ja/helper-array.md +++ b/docs/guide-ja/helper-array.md @@ -1,7 +1,7 @@ 配列ヘルパ ========== -[PHP の充実した配列関数](https://secure.php.net/manual/ja/book.array.php) への追加として、 +[PHP の充実した配列関数](https://www.php.net/manual/ja/book.array.php) への追加として、 Yii の配列ヘルパは、配列をさらに効率的に扱うことを可能にするスタティックなメソッドを提供しています。 @@ -118,7 +118,7 @@ $type = ArrayHelper::remove($array, 'type'); ## キーの存在をチェックする `ArrayHelper::keyExists` は、大文字と小文字を区別しないキーの比較をサポートすることを除いて、 -[array_key_exists](https://secure.php.net/manual/ja/function.array-key-exists.php) と同じ動作をします。例えば、 +[array_key_exists](https://www.php.net/manual/ja/function.array-key-exists.php) と同じ動作をします。例えば、 ```php $data1 = [ @@ -322,7 +322,7 @@ ArrayHelper::multisort($data, function($item) { 複数の値による並べ替えの場合は、並べ替えの順序の配列を渡して、値ごとに違う順序で並べ替えることが出来ます。 最後の引数は並べ替えのフラグで、 -PHP の [sort()](https://secure.php.net/manual/ja/function.sort.php) 関数に渡されるのと同じ値を取ることが出来ます。 +PHP の [sort()](https://www.php.net/manual/ja/function.sort.php) 関数に渡されるのと同じ値を取ることが出来ます。 ## 配列の型を検出する @@ -357,7 +357,7 @@ $decoded = ArrayHelper::htmlDecode($data); [[yii\helpers\ArrayHelper::merge()|ArrayHelper::merge()]] を使って、二つまたはそれ以上の配列を再帰的に一つの配列にマージすることが出来ます。 各配列に同じ文字列のキー値を持つ要素がある場合は、 -([array_merge_recursive()](https://secure.php.net/manual/ja/function.array-merge-recursive.php) とは違って)後のものが前のものを上書きします。 +([array_merge_recursive()](https://www.php.net/manual/ja/function.array-merge-recursive.php) とは違って)後のものが前のものを上書きします。 両方の配列が、同じキーを持つ配列型の要素を持っている場合は、再帰的なマージが実行されます。 添字型の要素については、後の配列の要素が前の配列の要素の後に追加されます。 [[yii\helpers\UnsetArrayValue]] オブジェクトを使って前の配列にある値を非設定に指定したり、 @@ -472,7 +472,7 @@ PHP は `in_array()` を提供していますが、これはサブセットや ` この種のチェックを助けるために、[[yii\helpers\ArrayHelper]] は [[yii\helpers\ArrayHelper::isIn()|isIn()]] および [[yii\helpers\ArrayHelper::isSubset()|isSubset()]] を -[in_array()](https://secure.php.net/manual/en/function.in-array.php) と同じシグニチャで提供しています。 +[in_array()](https://www.php.net/manual/en/function.in-array.php) と同じシグニチャで提供しています。 ```php // true diff --git a/docs/guide-ja/helper-html.md b/docs/guide-ja/helper-html.md index 14693f2..bef79c6 100644 --- a/docs/guide-ja/helper-html.md +++ b/docs/guide-ja/helper-html.md @@ -2,7 +2,7 @@ Html ヘルパ =========== 全てのウェブ・アプリケーションは大量の HTML マークアップを生成します。 -マークアップが静的な場合は、[PHP と HTML を一つのファイルに混ぜる](https://secure.php.net/manual/ja/language.basic-syntax.phpmode.php) ことによって効率よく生成することが可能ですが、マークアップを動的にするとなると、何らかの助けが無ければ、処理がトリッキーになってきます。 +マークアップが静的な場合は、[PHP と HTML を一つのファイルに混ぜる](https://www.php.net/manual/ja/language.basic-syntax.phpmode.php) ことによって効率よく生成することが可能ですが、マークアップを動的にするとなると、何らかの助けが無ければ、処理がトリッキーになってきます。 Yii はそのような手助けを Html ヘルパの形式で提供します。 これは、よく使われる HTML タグとそのオプションやコンテントを処理するための一連のスタティック・メソッドを提供するものです。 @@ -147,8 +147,8 @@ Html::removeCssStyle($options, ['width', 'height']); ### コンテントをエンコードおよびデコードする コンテントが適切かつ安全に HTML として表示されるためには、コンテント内の特殊文字がエンコードされなければなりません。 -特殊文字のエンコードとデコードは、PHP では [htmlspecialchars](https://secure.php.net/manual/ja/function.htmlspecialchars.php) と -[htmlspecialchars_decode](https://secure.php.net/manual/ja/function.htmlspecialchars-decode.php) によって行われます。 +特殊文字のエンコードとデコードは、PHP では [htmlspecialchars](https://www.php.net/manual/ja/function.htmlspecialchars.php) と +[htmlspecialchars_decode](https://www.php.net/manual/ja/function.htmlspecialchars-decode.php) によって行われます。 これらのメソッドを直接使用する場合の問題は、文字エンコーディングと追加のフラグを毎回指定しなければならないことです。 フラグは毎回同じものであり、文字エンコーディングはセキュリティ問題を防止するためにアプリケーションのそれと一致すべきものですから、 Yii は二つのコンパクトかつ使いやすいメソッドを用意しました。 diff --git a/docs/guide-ja/helper-json.md b/docs/guide-ja/helper-json.md index d322444..4a97a69 100644 --- a/docs/guide-ja/helper-json.md +++ b/docs/guide-ja/helper-json.md @@ -1,26 +1,26 @@ -Json wp +Json �w���p =========== -Json wp JSON GR[hуfR[hA̐ÓI\bh񋟂܂B -`[[yii\helpers\Json::encode()]]` \bh̓GR[hEG[܂A - `[[yii\web\JsExpression]]` IuWFNǧ`ŕ\ꂽ JavaScript ̎̓GR[h܂B -ł̓GR[h `JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE` ̃IvVōs܂B -ڍׂɂ‚Ă [PHP:json_encode](https://secure.php.net/manual/ja/function.json-encode.php) QƂĉB +Json �w���p�� JSON ���G���R�[�h����уf�R�[�h�����A�̐ÓI���\�b�h��񋟂��܂��B +`[[yii\helpers\Json::encode()]]` ���\�b�h�̓G���R�[�h�E�G���[���������܂����A + `[[yii\web\JsExpression]]` �I�u�W�F�N�g�̌`���ŕ\�����ꂽ JavaScript �̎��̓G���R�[�h���܂���B +����ł̓G���R�[�h�� `JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE` �̃I�v�V�����ōs���܂��B +�ڍׂɂ‚��Ă� [PHP:json_encode](https://www.php.net/manual/ja/function.json-encode.php) ���Q�Ƃ��ĉ������B -## `o +## ���`�o�� -ł `[[yii\helpers\Json::encode()]]` \bh͐`ĂȂ JSON (Ȃ킿󔒖̂) o͂܂B -lԂɂƂēǂ݂₷̂ɂ邽߂ɁAu`o pretty printingv ON ɂ邱Ƃo܂B +����ł� `[[yii\helpers\Json::encode()]]` ���\�b�h�͐��`����Ă��Ȃ� JSON (���Ȃ킿�󔒖����̂���) ���o�͂��܂��B +�l�ԂɂƂ��ēǂ݂₷�����̂ɂ��邽�߂ɁA�u���`�o�� pretty printing�v�� ON �ɂ��邱�Ƃ��o���܂��B -> Note: `o͂͊J̃fobOɂ͖𗧂‚ł傤Ai‹ł͐܂B +> Note: ���`�o�͂͊J�����̃f�o�b�O�ɂ͖𗧂‚ł��傤���A���i�‹��ł͐�������܂���B -CX^XƂɐ`o͂Lɂ邽߂ɂ̓IvVw肷邱Ƃo܂BȂ킿 : +�C���X�^���X���Ƃɐ��`�o�͂�L���ɂ��邽�߂ɂ̓I�v�V�������w�肷�邱�Ƃ��o���܂��B���Ȃ킿 : ```php $data = ['a' => 1, 'b' => 2]; $json = yii\helpers\Json::encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT); ``` -JSON wp̐`o͂O[oɗLɂ邱Ƃo܂BႦ΁Aݒt@C index.php ̒ : +JSON �w���p�̐��`�o�͂��O���[�o���ɗL���ɂ��邱�Ƃ��o���܂��B�Ⴆ�΁A�ݒ�t�@�C���� index.php �̒��� : ```php -yii\helpers\Json::$prettyPrint = YII_DEBUG; // fobOE[hł͐`o͂gp +yii\helpers\Json::$prettyPrint = YII_DEBUG; // �f�o�b�O�E���[�h�ł͐��`�o�͂��g�p ``` diff --git a/docs/guide-ja/input-file-upload.md b/docs/guide-ja/input-file-upload.md index ffa6b73..669fd39 100644 --- a/docs/guide-ja/input-file-upload.md +++ b/docs/guide-ja/input-file-upload.md @@ -123,7 +123,7 @@ class SiteController extends Controller 最初に、モデル・クラスを修正して、`file` 検証規則に `maxFiles` オプションを追加して、アップロードを許可されるファイルの最大数を制限しなければなりません。 `maxFiles` を `0` に設定することは、同時にアップロード出来るファイル数に制限がないことを意味します。 同時にアップロードすることを許されるファイルの数は、また、PHP のディレクティブ -[`max_file_uploads`](https://secure.php.net/manual/ja/ini.core.php#ini.max-file-uploads) (デフォルト値は 20) によっても制限されます。 +[`max_file_uploads`](https://www.php.net/manual/ja/ini.core.php#ini.max-file-uploads) (デフォルト値は 20) によっても制限されます。 `upload()` メソッドも、アップロードされた複数のファイルを一つずつ保存するように修正しなければなりません。 ```php diff --git a/docs/guide-ja/intro-upgrade-from-v1.md b/docs/guide-ja/intro-upgrade-from-v1.md index 8d64b2d..53010f0 100644 --- a/docs/guide-ja/intro-upgrade-from-v1.md +++ b/docs/guide-ja/intro-upgrade-from-v1.md @@ -29,15 +29,15 @@ Yii 2.0 は PHP 5.4 以上を必要とします。PHP 5.4 は、Yii 1.1 によ この結果として、注意を払うべき言語レベルでの違いが数多くあります。 以下は PHP に関する主要な変更点の要約です。 -- [名前空間](https://secure.php.net/manual/ja/language.namespaces.php)。 -- [無名関数](https://secure.php.net/manual/ja/functions.anonymous.php)。 +- [名前空間](https://www.php.net/manual/ja/language.namespaces.php)。 +- [無名関数](https://www.php.net/manual/ja/functions.anonymous.php)。 - 配列の短縮構文 `[...要素...]` が `array(...要素...)` の代りに使われています。 - 短縮形の echo タグ `formatter->format(0.125, ['percent', 2]); > フォーマッタは適切なツールではありません。 > 日付と数値についてユーザ入力を変換するためには、それぞれ、[[yii\validators\DateValidator]] と [[yii\validators\NumberValidator]] > を使うことが出来ます。機械が読み取れる日付と時刻のフォーマットの単純な相互変換には、PHP の -> [date()](https://secure.php.net/manual/ja/function.date.php) 関数で十分です。 +> [date()](https://www.php.net/manual/ja/function.date.php) 関数で十分です。 ## フォーマッタを構成する @@ -86,7 +86,7 @@ return [ グローバルにカスタマイズすることが出来ます。 日付と時刻のフォーマットは、[ICU 構文](http://userguide.icu-project.org/formatparse/datetime) によって指定することが出来ます。 -また、ICU 構文と区別するために `php:` という接頭辞を付けて、[PHP の date() 構文](https://secure.php.net/manual/ja/function.date.php) +また、ICU 構文と区別するために `php:` という接頭辞を付けて、[PHP の date() 構文](https://www.php.net/manual/ja/function.date.php) を使うことも出来ます。例えば、 ```php @@ -191,7 +191,7 @@ echo Yii::$app->formatter->asTime('2014-10-06 14:41:00 CEST'); // 14:41:00 を使って調整することが出来ます。 更に高度な設定のためには、[[yii\i18n\Formatter::numberFormatterOptions]] と [[yii\i18n\Formatter::numberFormatterTextOptions]] -を使って、内部的に使用される [NumberFormatter クラス](https://secure.php.net/manual/ja/class.numberformatter.php) を構成することが出来ます。 +を使って、内部的に使用される [NumberFormatter クラス](https://www.php.net/manual/ja/class.numberformatter.php) を構成することが出来ます。 例えば、小数部の最大桁数と最小桁数を調整するためには、次のように [[yii\i18n\Formatter::numberFormatterOptions]] プロパティを構成します。 @@ -255,7 +255,7 @@ echo Yii::$app->formatter->asDate('2014-01-01'); // 出力: 2014/01/01 デフォルトでは、現在のアクティブな [[yii\i18n\Formatter::locale|locale]] は [[yii\base\Application::language]] の値によって決定されます。 これは [[yii\i18n\Formatter::locale]] プロパティを明示的に指定することによってオーバーライドすることが出来ます。 -> Note: Yii のフォーマッタは、[PHP intl 拡張](https://secure.php.net/manual/ja/book.intl.php) に依存してデータのフォーマットの +> Note: Yii のフォーマッタは、[PHP intl 拡張](https://www.php.net/manual/ja/book.intl.php) に依存してデータのフォーマットの > ローカライズをサポートしています。PHP にコンパイルされた ICU ライブラリのバージョンによってフォーマットの結果が異なる場合がありますので、 > あなたの全ての環境で、同じ ICU バージョンを使うことが推奨されます。 > 詳細については、[PHP 環境を国際化のために設定する](tutorial-i18n.md#setup-environment) を参照してください。 diff --git a/docs/guide-ja/security-passwords.md b/docs/guide-ja/security-passwords.md index 6049bd5..f5be085 100644 --- a/docs/guide-ja/security-passwords.md +++ b/docs/guide-ja/security-passwords.md @@ -7,7 +7,7 @@ 最悪のシナリオ (アプリケーションに侵入された場合) であっても、ユーザのパスワードについて強化されたセキュリティを提供することが出来るように、 ブルート・フォース・アタックに対する耐性が強いハッシュ・アルゴリズムを使う必要があります。現在、最善の選択は `bcrypt` です。 -PHP では、[crypt 関数](https://secure.php.net/manual/ja/function.crypt.php) を使って `bcrypt` ハッシュを生成することが出来ます。 +PHP では、[crypt 関数](https://www.php.net/manual/ja/function.crypt.php) を使って `bcrypt` ハッシュを生成することが出来ます。 Yii は `crypt` を使ってハッシュを安全に生成し検証することを容易にするために、二つのヘルパ関数を提供しています。 ユーザが初めてパスワードを提供するとき (例えば、ユーザ登録の時) には、パスワードをハッシュする必要があります。 diff --git a/docs/guide-ja/start-installation.md b/docs/guide-ja/start-installation.md index 1444827..e7b674c 100644 --- a/docs/guide-ja/start-installation.md +++ b/docs/guide-ja/start-installation.md @@ -140,7 +140,7 @@ Composer によるアセットのインストールを抑止するためには インストール完了後、あなたのウェブ・サーバを構成してください (次のセクションを参照してください)。 あるいは、プロジェクトの `web` ディレクトリで次のコマンドを実行して、 -[PHP の内蔵ウェブ・サーバ](https://secure.php.net/manual/ja/features.commandline.webserver.php) を使ってください。 +[PHP の内蔵ウェブ・サーバ](https://www.php.net/manual/ja/features.commandline.webserver.php) を使ってください。 ```bash php yii serve @@ -174,7 +174,7 @@ http://localhost:8080/ Yii の最低必要条件を満たすように PHP のインストールを構成しなければなりません。 最も重要なことは、PHP 5.4 以上でなければならないということです。最新の PHP 7 なら理想的です。 -また、アプリケーションがデータベースを必要とする場合は、[PDO PHP 拡張](https://secure.php.net/manual/ja/pdo.installation.php) および対応するデータベース・ドライバ (MySQL データベースのための `pdo_mysql` など) をインストールしなければなりません。 +また、アプリケーションがデータベースを必要とする場合は、[PDO PHP 拡張](https://www.php.net/manual/ja/pdo.installation.php) および対応するデータベース・ドライバ (MySQL データベースのための `pdo_mysql` など) をインストールしなければなりません。 ウェブ・サーバを構成する @@ -236,7 +236,7 @@ DocumentRoot "path/to/basic/web" ### 推奨される Nginx の構成 -[Nginx](http://wiki.nginx.org/) を使うためには、PHP を [FPM SAPI](https://secure.php.net/manual/ja/install.fpm.php) としてインストールしなければなりません。 +[Nginx](http://wiki.nginx.org/) を使うためには、PHP を [FPM SAPI](https://www.php.net/manual/ja/install.fpm.php) としてインストールしなければなりません。 下記の Nginx の設定を使うことができます。 `path/to/basic/web` の部分を `basic/web` の実際のパスに置き換え、`mysite.test` を実際のサーバのホスト名に置き換えてください。 diff --git a/docs/guide-ja/start-prerequisites.md b/docs/guide-ja/start-prerequisites.md index ad6b584..8aeac1f 100644 --- a/docs/guide-ja/start-prerequisites.md +++ b/docs/guide-ja/start-prerequisites.md @@ -4,8 +4,8 @@ Yii の学習曲線は他の PHP フレームワークほど急峻ではあり ## PHP -Yii は PHP フレームワークですから、必ず [言語リファレンスを読んで理解する](https://secure.php.net/manual/ja/langref.php) ようにして下さい。 -Yii を使って開発するときはオブジェクト指向の流儀でコードを書くことになりますから、必ず、[クラスとオブジェクト](https://secure.php.net/manual/ja/language.oop5.basic.php) および [名前空間](https://secure.php.net/manual/ja/language.namespaces.php) には慣れ親しんでおいて下さい。 +Yii は PHP フレームワークですから、必ず [言語リファレンスを読んで理解する](https://www.php.net/manual/ja/langref.php) ようにして下さい。 +Yii を使って開発するときはオブジェクト指向の流儀でコードを書くことになりますから、必ず、[クラスとオブジェクト](https://www.php.net/manual/ja/language.oop5.basic.php) および [名前空間](https://www.php.net/manual/ja/language.namespaces.php) には慣れ親しんでおいて下さい。 ## オブジェクト指向プログラミング diff --git a/docs/guide-ja/structure-applications.md b/docs/guide-ja/structure-applications.md index e8f369d..f509c21 100644 --- a/docs/guide-ja/structure-applications.md +++ b/docs/guide-ja/structure-applications.md @@ -356,7 +356,7 @@ $width = \Yii::$app->params['thumbnail.size'][0]; #### [[yii\base\Application::timeZone|timeZone]] このプロパティは、PHP ランタイムのデフォルト・タイム・ゾーンを設定する代替手段として提供されています。 -このプロパティを構成することによって、本質的には PHP 関数 [date_default_timezone_set()](https://secure.php.net/manual/ja/function.date-default-timezone-set.php) を呼び出すことになります。 +このプロパティを構成することによって、本質的には PHP 関数 [date_default_timezone_set()](https://www.php.net/manual/ja/function.date-default-timezone-set.php) を呼び出すことになります。 例えば、 ```php diff --git a/docs/guide-ja/structure-models.md b/docs/guide-ja/structure-models.md index e469858..827883c 100644 --- a/docs/guide-ja/structure-models.md +++ b/docs/guide-ja/structure-models.md @@ -37,8 +37,8 @@ echo $model->name; ``` また、配列の要素にアクセスするようして、属性にアクセスすることも出来ます。 -これは、[[yii\base\Model]] が [ArrayAccess インタフェイス](https://secure.php.net/manual/ja/class.arrayaccess.php) と -[Traversable インタフェイス](https://secure.php.net/manual/ja/class.traversable.php) をサポートしている恩恵です。 +これは、[[yii\base\Model]] が [ArrayAccess インタフェイス](https://www.php.net/manual/ja/class.arrayaccess.php) と +[Traversable インタフェイス](https://www.php.net/manual/ja/class.traversable.php) をサポートしている恩恵です。 ```php $model = new \app\models\ContactForm; diff --git a/docs/guide-ja/structure-widgets.md b/docs/guide-ja/structure-widgets.md index 0d30b5a..2230ebb 100644 --- a/docs/guide-ja/structure-widgets.md +++ b/docs/guide-ja/structure-widgets.md @@ -67,7 +67,7 @@ use yii\helpers\Html; 返されたウィジェットのインスタンスを使って、ウィジェットのコンテントを構築することが出来ます。 > Note: いくつかのウィジェットは、[[yii\base\Widget::end()]] が呼ばれるときに囲んだコンテンツを調整するため、 -> [出力バッファリング](https://secure.php.net/manual/ja/book.outcontrol.php) を使用します。 +> [出力バッファリング](https://www.php.net/manual/ja/book.outcontrol.php) を使用します。 > この理由から、[[yii\base\Widget::begin()]] と [[yii\base\Widget::end()]] の呼び出しは、同じビュー・ファイルの中で発生するものと想定されています。 > この規則に従わない場合は、予期しない出力結果が生じ得ます。 diff --git a/docs/guide-ja/tutorial-core-validators.md b/docs/guide-ja/tutorial-core-validators.md index 317dd43..45b9b5d 100644 --- a/docs/guide-ja/tutorial-core-validators.md +++ b/docs/guide-ja/tutorial-core-validators.md @@ -142,7 +142,7 @@ compare バリデータは、文字列や数値を比較するためにしか使 これには [ICU manual](http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax) で記述されている日付/時刻のパターンを使うことが出来ます。 あるいは、PHP の `Datetime` クラスによって認識される書式に接頭辞 `php:` を付けた文字列でも構いません。 - サポートされている書式については、 を参照してください。 + サポートされている書式については、 を参照してください。 このプロパティが設定されていないときは、`Yii::$app->formatter->dateFormat` の値を取ります。 - `timestampAttribute`: このバリデータが、入力された日付/時刻から変換した UNIX タイムスタンプを代入することが出来る属性の名前。 @@ -424,7 +424,7 @@ function foo($model, $attribute) { > Tip: 入力値をトリムしたい場合は、[trim](#trim) バリデータを直接使うことが出来ます。 > Tip: `filter` のコールバックに期待されるシグニチャを持つ PHP 関数が多数存在します。 -> 例えば、([intval](https://secure.php.net/manual/ja/function.intval.php) や [boolval](https://secure.php.net/manual/ja/function.boolval.php) +> 例えば、([intval](https://www.php.net/manual/ja/function.intval.php) や [boolval](https://www.php.net/manual/ja/function.boolval.php) > などを使って) 型キャストを適用し、属性が特定の型になるように保証したい場合は、 > それらの関数をクロージャで包む必要はなく、単にフィルタの関数名を指定するだけで十分です。 > diff --git a/docs/guide-ja/tutorial-i18n.md b/docs/guide-ja/tutorial-i18n.md index 5636fec..243dc3c 100644 --- a/docs/guide-ja/tutorial-i18n.md +++ b/docs/guide-ja/tutorial-i18n.md @@ -241,7 +241,7 @@ $price = 100; echo \Yii::t('app', 'Price: {0,number,currency}', $price); ``` -> Note: パラメータのフォーマットには、[intl PHP 拡張](https://secure.php.net/manual/ja/intro.intl.php) のインストールが必要です。 +> Note: パラメータのフォーマットには、[intl PHP 拡張](https://www.php.net/manual/ja/intro.intl.php) のインストールが必要です。 プレースホルダにフォーマット規則を指定するためには、短い構文または完全な構文のどちらかを使うことが出来ます。 @@ -804,12 +804,12 @@ class TranslationEventHandler ## PHP 環境をセットアップする -Yii は、[[yii\i18n\Formatter]] クラスの数値や日付の書式設定や、[[yii\i18n\MessageFormatter]] を使うメッセージのフォーマッティングなど、ほとんどの国際化機能を提供するために [PHP intl 拡張](https://secure.php.net/manual/ja/book.intl.php) を使います。 +Yii は、[[yii\i18n\Formatter]] クラスの数値や日付の書式設定や、[[yii\i18n\MessageFormatter]] を使うメッセージのフォーマッティングなど、ほとんどの国際化機能を提供するために [PHP intl 拡張](https://www.php.net/manual/ja/book.intl.php) を使います。 この二つのクラスは、`intl` がインストールされていない場合に備えて基本的な機能を提供するフォールバックを実装しています。 だだし、このフォールバックの実装は、英語がターゲット言語である場合にのみ十分に機能するものす。 従って、国際化機能が必要とされる場合は、`intl` をインストールすることが強く推奨されます。 -[PHP intl 拡張](https://secure.php.net/manual/ja/book.intl.php) は、さまざまに異なる全てのロケールについて知識と書式の規則を提供する +[PHP intl 拡張](https://www.php.net/manual/ja/book.intl.php) は、さまざまに異なる全てのロケールについて知識と書式の規則を提供する [ICU ライブラリ](http://site.icu-project.org/) に基礎を置いています。 ICU のバージョンが異なると、日付や数値のフォーマットの結果も異なる場合があります。 あなたのウェブ・サイトが全ての環境で同じ出力をすることを保証するためには、 diff --git a/docs/guide-ja/tutorial-performance-tuning.md b/docs/guide-ja/tutorial-performance-tuning.md index 8efb7ce..97be31c 100644 --- a/docs/guide-ja/tutorial-performance-tuning.md +++ b/docs/guide-ja/tutorial-performance-tuning.md @@ -11,7 +11,7 @@ PHP 環境を正しく構成することは非常に重要です。最大のパフォーマンスを得るためには、 - 最新の安定した PHP バージョンを使うこと。使用する PHP のメジャー・リリースを上げると、顕著なパフォーマンスの改善がもたらされることがあります。 -- [Opcache](https://secure.php.net/opcache) (PHP 5.5 以降) または [APC](https://secure.php.net/apc) (PHP 5.4) を使って、 +- [Opcache](https://www.php.net/opcache) (PHP 5.5 以降) または [APC](https://www.php.net/apc) (PHP 5.4) を使って、 バイト・コード・キャッシュを有効にすること。 バイト・コード・キャッシュによって、リクエストが入ってくるたびに PHP スクリプトを解析してインクルードする時間の浪費を避けることが出来ます。 - [`realpath()` キャッシュをチューニングする](https://github.com/samdark/realpath_cache_tuner). @@ -217,7 +217,7 @@ composer dumpautoload -o - [Yii のデバッグ・ツールバーとデバッガ](https://github.com/yiisoft/yii2-debug/blob/master/docs/guide-ja/README.md) - [Blackfire](https://blackfire.io/) -- [XHProf](https://secure.php.net/manual/ja/book.xhprof.php) +- [XHProf](https://www.php.net/manual/ja/book.xhprof.php) - [XDebug プロファイラ](http://xdebug.org/docs/profiler) ## アプリケーションをスケーラブルなものにする覚悟を決める diff --git a/docs/guide-pl/caching-http.md b/docs/guide-pl/caching-http.md index 293b35e..07da10c 100644 --- a/docs/guide-pl/caching-http.md +++ b/docs/guide-pl/caching-http.md @@ -126,7 +126,7 @@ w `session.cache_limiter` w ustawieniach PHP INI. Mogą one kolidować z funkcjo aby temu zapobiec, `HttpCache` blokuje to automatyczne wysyłanie. Jeśli jednak chcesz zmienić to zachowanie, powinieneś skonfigurować właściwość [[yii\filters\HttpCache::sessionCacheLimiter]]. Powinna ona przyjmować wartość zawierającą łańcuch znaków `public`, `private`, `private_no_expire` i `nocache`. Szczegóły dotyczące tego zapisu znajdziesz w dokumentacji PHP dla -[session_cache_limiter()](https://secure.php.net/manual/pl/function.session-cache-limiter.php). +[session_cache_limiter()](https://www.php.net/manual/pl/function.session-cache-limiter.php). ## Korzyści dla SEO diff --git a/docs/guide-pl/concept-autoloading.md b/docs/guide-pl/concept-autoloading.md index 857af6a..9210895 100644 --- a/docs/guide-pl/concept-autoloading.md +++ b/docs/guide-pl/concept-autoloading.md @@ -1,7 +1,7 @@ Autoładowanie klas ================== -Yii opiera się na [mechanizmie automatycznego ładowania klas](https://secure.php.net/manual/pl/language.oop5.autoload.php) służącym do +Yii opiera się na [mechanizmie automatycznego ładowania klas](https://www.php.net/manual/pl/language.oop5.autoload.php) służącym do zlokalizowania i dołączenia wszystkich wymaganych plików klas. Wbudowany wysoce wydajny autoloader klas, zgodny ze [standardem PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md), jest instalowany po załączeniu pliku `Yii.php`. @@ -15,7 +15,7 @@ Korzystanie z autoloadera Yii Aby skorzystać z autoloadera klas Yii, powinieneś przestrzegać dwóch prostych zasad tworzenia i nazywania własnych klas: -* Każda klasa musi znajdować się w [przestrzeni nazw](https://secure.php.net/manual/pl/language.namespaces.php) (np. `foo\bar\MyClass`) +* Każda klasa musi znajdować się w [przestrzeni nazw](https://www.php.net/manual/pl/language.namespaces.php) (np. `foo\bar\MyClass`) * Każda klasa musi być zapisana jako oddzielny plik, do którego ścieżka określona jest poniższym algorytmem: ```php diff --git a/docs/guide-pl/db-active-record.md b/docs/guide-pl/db-active-record.md index 4349559..b996ae6 100644 --- a/docs/guide-pl/db-active-record.md +++ b/docs/guide-pl/db-active-record.md @@ -438,8 +438,8 @@ Jeśli chcesz sprawdzić wartość atrybutu sprzed ostatniej zmiany, możesz wyw > ma tą samą wartość, ale jest innego typu. Taka sytuacja zdarza się często, kiedy model jest aktualizowany danymi pochodzącymi z formularza > HTML, gdzie każda wartość jest reprezentowana jako string. > Aby upewnić się, że wartości będą odpowiednich typów, np. integer, możesz zaaplikować [filtr walidacji](input-validation.md#data-filtering): -> `['attributeName', 'filter', 'filter' => 'intval']`. Działa on z wszystkimi funkcjami PHP rzutującymi typy jak [intval()](https://secure.php.net/manual/en/function.intval.php), -> [floatval()](https://secure.php.net/manual/en/function.floatval.php), [boolval](https://secure.php.net/manual/en/function.boolval.php), itp... +> `['attributeName', 'filter', 'filter' => 'intval']`. Działa on z wszystkimi funkcjami PHP rzutującymi typy jak [intval()](https://www.php.net/manual/en/function.intval.php), +> [floatval()](https://www.php.net/manual/en/function.floatval.php), [boolval](https://www.php.net/manual/en/function.boolval.php), itp... ### Domyślne wartości atrybutów diff --git a/docs/guide-pl/glossary.md b/docs/guide-pl/glossary.md index 68df708..406f780 100644 --- a/docs/guide-pl/glossary.md +++ b/docs/guide-pl/glossary.md @@ -92,7 +92,7 @@ Pakiet opisuje listę powiązanych zasobów wraz z plikiem konfiguracyjnym defin ## przestrzeń nazw -Przestrzeń nazw jest [funkcjonalnością języka PHP](https://secure.php.net/manual/pl/language.namespaces.php), aktywnie wykorzystywaną w Yii 2. +Przestrzeń nazw jest [funkcjonalnością języka PHP](https://www.php.net/manual/pl/language.namespaces.php), aktywnie wykorzystywaną w Yii 2. # R diff --git a/docs/guide-pl/intro-upgrade-from-v1.md b/docs/guide-pl/intro-upgrade-from-v1.md index 6c3550b..c1fe16c 100644 --- a/docs/guide-pl/intro-upgrade-from-v1.md +++ b/docs/guide-pl/intro-upgrade-from-v1.md @@ -28,15 +28,15 @@ Yii 2.0 wymaga PHP w wersji 5.4 lub nowszej, która została znacząco ulepszona Z tego też powodu już na poziomie samego języka pojawiło się sporo różnic, na które należy zwrócić uwagę. Poniżej znajdziesz krótkie podsumowanie głównych różnic dotyczących PHP: -- [Przestrzenie nazw](https://secure.php.net/manual/pl/language.namespaces.php). -- [Funkcje anonimowe](https://secure.php.net/manual/pl/functions.anonymous.php). +- [Przestrzenie nazw](https://www.php.net/manual/pl/language.namespaces.php). +- [Funkcje anonimowe](https://www.php.net/manual/pl/functions.anonymous.php). - Skrócona składnia zapisu tablic `[...elementy...]` używana zamiast `array(...elementy...)`. - Krótkie tagi echo ` ---------------------- Po zakończeniu instalacji, skonfiguruj swój serwer (zobacz następną sekcję) lub użyj -[wbudowanego serwera PHP](https://secure.php.net/manual/en/features.commandline.webserver.php), +[wbudowanego serwera PHP](https://www.php.net/manual/en/features.commandline.webserver.php), uruchamiając poniższą komendę w konsoli z poziomu folderu `web` w projekcie: ```bash @@ -176,7 +176,7 @@ Powinienieś zobaczyć stronę z napisem "Congratulations!" ("Gratulacje!"). Je Powinienieś skonfigurować swoją instalację PHP tak, aby spełniała minimalne wymogi Yii. Najważniejszym z nich jest posiadanie PHP w wersji 5.4 lub wyższej. Powinienieś również zainstalować -[rozszerzenie PDO](https://secure.php.net/manual/en/pdo.installation.php) oraz odpowiedni sterownik bazy danych +[rozszerzenie PDO](https://www.php.net/manual/en/pdo.installation.php) oraz odpowiedni sterownik bazy danych (np. `pdo_mysql` dla bazy danych MySQL), jeśli Twoja aplikacja potrzebuje bazy danych. @@ -234,7 +234,7 @@ DocumentRoot "path/to/basic/web" ### Zalecane ustawienia Nginx -Aby użyć [Nginx](http://wiki.nginx.org/) powinienieś zainstalować PHP jako [FPM SAPI](https://secure.php.net/install.fpm). +Aby użyć [Nginx](http://wiki.nginx.org/) powinienieś zainstalować PHP jako [FPM SAPI](https://www.php.net/install.fpm). Możesz użyć przedstawionej poniżej konfiguracji Nginx, zastępując jedynie ścieżkę `path/to/basic/web` aktualną ścieżką do `basic/web` Twojej aplikacji oraz `mysite.test` aktualną nazwą hosta. diff --git a/docs/guide-pt-BR/caching-data.md b/docs/guide-pt-BR/caching-data.md index 1de83e0..089f2ae 100644 --- a/docs/guide-pt-BR/caching-data.md +++ b/docs/guide-pt-BR/caching-data.md @@ -75,7 +75,7 @@ Por exemplo, você pode modificar a configuração acima para usar [[yii\caching Yii suporta uma ampla gama de sistemas de cache. A seguir um resumo: -* [[yii\caching\ApcCache]]: usa a extensão do PHP [APC](https://secure.php.net/manual/en/book.apc.php). Esta opção pode ser +* [[yii\caching\ApcCache]]: usa a extensão do PHP [APC](https://www.php.net/manual/en/book.apc.php). Esta opção pode ser considerada a mais rápida ao se implementar o cache de uma aplicação densa e centralizada (por exemplo, um servidor, sem balanceadores de carga dedicados, etc.). * [[yii\caching\DbCache]]: usa uma tabela no banco de dados para armazenar os dados em cache. Para usar este cache @@ -89,13 +89,13 @@ Yii suporta uma ampla gama de sistemas de cache. A seguir um resumo: `Yii::$app->cache` possa ser `null`. * [[yii\caching\FileCache]]: usa arquivos para armazenar os dados em cache. Este é particularmente indicado para armazenar grandes quantidades de dados como o conteúdo da página. -* [[yii\caching\MemCache]]: usa o [memcache](https://secure.php.net/manual/en/book.memcache.php) do PHP e as extensões - [memcached](https://secure.php.net/manual/en/book.memcached.php). Esta opção pode ser considerada a mais rápida +* [[yii\caching\MemCache]]: usa o [memcache](https://www.php.net/manual/en/book.memcache.php) do PHP e as extensões + [memcached](https://www.php.net/manual/en/book.memcached.php). Esta opção pode ser considerada a mais rápida ao se implementar o cache em aplicações distribuídas (ex., vários servidores, balanceadores de carga, etc.) * [[yii\redis\Cache]]: implementa um componente de cache baseado em armazenamento chave-valor [Redis](http://redis.io/) (requer redis versão 2.6.12 ou mais recente). * [[yii\caching\WinCache]]: usa a extensão PHP [WinCache](http://iis.net/downloads/microsoft/wincache-extension) - ([veja também](https://secure.php.net/manual/en/book.wincache.php)). + ([veja também](https://www.php.net/manual/en/book.wincache.php)). * [[yii\caching\XCache]] _(deprecated)_: usa a extensão PHP [XCache](http://xcache.lighttpd.net/). * [[yii\caching\ZendDataCache]] _(deprecated)_: usa [Cache de Dados Zend](http://files.zend.com/help/Zend-Server-6/zend-server.htm#data_cache_component.htm) diff --git a/docs/guide-pt-BR/caching-http.md b/docs/guide-pt-BR/caching-http.md index 5619520..afa2949 100644 --- a/docs/guide-pt-BR/caching-http.md +++ b/docs/guide-pt-BR/caching-http.md @@ -124,7 +124,7 @@ como especificado na configuração `session.cache_limiter` do PHP.INI. Estes ca desabilitar o cache que você deseja do `HttpCache`. Para prevenir-se deste problema, por padrão, o `HttpCache` desabilitará o envio destes cabeçalhos automaticamente. Se você quiser modificar estes comportamentos, deve configurar a propriedade [[yii\filters\HttpCache::sessionCacheLimiter]]. A propriedade pode receber um valor string, como: `public`, `private`, `private_no_expire` e `nocache`. Por favor, consulte o manual do -PHP sobre [session_cache_limiter()](https://secure.php.net/manual/en/function.session-cache-limiter.php) +PHP sobre [session_cache_limiter()](https://www.php.net/manual/en/function.session-cache-limiter.php) para mais explicações sobre estes valores. diff --git a/docs/guide-pt-BR/intro-upgrade-from-v1.md b/docs/guide-pt-BR/intro-upgrade-from-v1.md index 76ec575..a0164a0 100644 --- a/docs/guide-pt-BR/intro-upgrade-from-v1.md +++ b/docs/guide-pt-BR/intro-upgrade-from-v1.md @@ -32,15 +32,15 @@ O Yii 2.0 requer o PHP 5.4 ou superior, que é uma versão de grande melhoria so Como resultado, existem muitas diferenças na linguagem às quais você deve dar a devida atenção. Segue abaixo um resumo das principais mudanças do PHP: -- [Namespaces](https://secure.php.net/manual/pt_BR/language.namespaces.php). -- [Funções anônimas](https://secure.php.net/manual/pt_BR/functions.anonymous.php). +- [Namespaces](https://www.php.net/manual/pt_BR/language.namespaces.php). +- [Funções anônimas](https://www.php.net/manual/pt_BR/functions.anonymous.php). - A sintaxe curta de arrays `[...elementos...]` é utilizada ao invés de `array(...elementos...)`. - Tags curtas de *echo* ` ------------------------ Após a instalação ser concluída, você pode tanto configurar seu servidor web (veja na próxima seção) como usar o -[servidor web embutido do PHP](https://secure.php.net/manual/pt_BR/features.commandline.webserver.php) executando o seguinte comando de console no diretório `web`: +[servidor web embutido do PHP](https://www.php.net/manual/pt_BR/features.commandline.webserver.php) executando o seguinte comando de console no diretório `web`: ```bash php yii serve @@ -177,7 +177,7 @@ Você deverá ver a página de parabenização acima em seu navegador. Se não a ``` Você deve configurar sua instalação PHP de forma a atingir os requisitos mínimos do Yii. A versão mínima do PHP que você deve ter é a 5.4. Mas o ideal seria utilizar a versão mais recente, PHP 7. -Se sua aplicação precisa de um banco de dados, você também deve instalar a [Extensão PDO PHP](https://secure.php.net/manual/pt_BR/pdo.installation.php) e o driver de banco de dados correspondente (tal como `pdo_mysql` para bancos de dados MySQL). +Se sua aplicação precisa de um banco de dados, você também deve instalar a [Extensão PDO PHP](https://www.php.net/manual/pt_BR/pdo.installation.php) e o driver de banco de dados correspondente (tal como `pdo_mysql` para bancos de dados MySQL). Configurando Servidores Web @@ -242,7 +242,7 @@ DocumentRoot "caminho/para/basico/web" ### Configuração do Nginx Recomendada -Para usar o [Nginx](http://wiki.nginx.org/), você deve ter instalado o PHP como um [FPM SAPI](https://secure.php.net/install.fpm). Use a seguinte configuração do Nginx, +Para usar o [Nginx](http://wiki.nginx.org/), você deve ter instalado o PHP como um [FPM SAPI](https://www.php.net/install.fpm). Use a seguinte configuração do Nginx, substituindo `caminho/para/basico/web` com o caminho real para `basico/web` e `mysite.test` com o nome de host real a servir. ```nginx diff --git a/docs/guide-pt-BR/start-prerequisites.md b/docs/guide-pt-BR/start-prerequisites.md index 3128b8d..2feb18e 100644 --- a/docs/guide-pt-BR/start-prerequisites.md +++ b/docs/guide-pt-BR/start-prerequisites.md @@ -4,8 +4,8 @@ A curva de aprendizado no Yii não é tão íngreme como em outros frameworks PH ## PHP -Yii é um framework PHP. Portanto, certifique-se de [ler e entender a referência da linguagem](https://secure.php.net/manual/pt_BR/langref.php). -Quando estiver desenvolvendo com Yii, você estará escrevendo código orientado a objetos, então, certifique-se de que está familiarizado tanto com [Classes e Objetos](https://secure.php.net/manual/pt_BR/language.oop5.basic.php) como com [namespaces](https://secure.php.net/manual/pt_BR/language.namespaces.php). +Yii é um framework PHP. Portanto, certifique-se de [ler e entender a referência da linguagem](https://www.php.net/manual/pt_BR/langref.php). +Quando estiver desenvolvendo com Yii, você estará escrevendo código orientado a objetos, então, certifique-se de que está familiarizado tanto com [Classes e Objetos](https://www.php.net/manual/pt_BR/language.oop5.basic.php) como com [namespaces](https://www.php.net/manual/pt_BR/language.namespaces.php). ## Programação orientada a objetos diff --git a/docs/guide-pt-BR/structure-applications.md b/docs/guide-pt-BR/structure-applications.md index 64075d9..7632a90 100644 --- a/docs/guide-pt-BR/structure-applications.md +++ b/docs/guide-pt-BR/structure-applications.md @@ -398,7 +398,7 @@ Mais detalhes sobre essa propriedade podem ser encontrados na seção Essa propriedade é disponibilizada como uma maneira alternativa de definir a timezone do PHP em tempo de execução. Ao confiugrar essa propriedade, você está essencialmente chamando a função -[date_default_timezone_set()](https://secure.php.net/manual/en/function.date-default-timezone-set.php) +[date_default_timezone_set()](https://www.php.net/manual/en/function.date-default-timezone-set.php) do PHP. Por exemplo: ```php diff --git a/docs/guide-pt-BR/structure-models.md b/docs/guide-pt-BR/structure-models.md index 372d6a5..d0af457 100644 --- a/docs/guide-pt-BR/structure-models.md +++ b/docs/guide-pt-BR/structure-models.md @@ -43,8 +43,8 @@ echo $model->name; ``` Você também pode acessar os atributos como elementos de um array, graças ao suporte -de [ArrayAccess](https://secure.php.net/manual/en/class.arrayaccess.php) e -[ArrayIterator](https://secure.php.net/manual/en/class.arrayiterator.php) pelo +de [ArrayAccess](https://www.php.net/manual/en/class.arrayaccess.php) e +[ArrayIterator](https://www.php.net/manual/en/class.arrayiterator.php) pelo [[yii\base\Model]]: ```php diff --git a/docs/guide-pt-BR/tutorial-core-validators.md b/docs/guide-pt-BR/tutorial-core-validators.md index d685b2a..c99acb8 100644 --- a/docs/guide-pt-BR/tutorial-core-validators.md +++ b/docs/guide-pt-BR/tutorial-core-validators.md @@ -92,7 +92,7 @@ Este validador compara o valor de entrada especificado com um outro e certifica Este validador verifica se o valor de entrada é uma data, hora ou data e hora em um formato adequado. Opcionalmente, pode converter o valor de entrada para um UNIX timestamp ou outro formato legível e armazená-lo em um atributo especificado via [[yii\validators\DateValidator::timestampAttribute|timestampAttribute]]. -- `format`: o formato date/time que o valor que está sendo validado deve ter. Este pode ser um padrão de data e hora conforme descrito no [ICU manual] (http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax). Alternativamente esta pode ser uma string com o prefixo `php:` representando um formato que pode ser reconhecido pela classe PHP `Datetime`. Por favor, consulte para formatos suportados. Se isso não for definido, ele terá o valor de `Yii::$app->formatter->dateFormat`. Consulte a [[yii\validators\DateValidator::$format|documentação da API]] para mais detalhes. +- `format`: o formato date/time que o valor que está sendo validado deve ter. Este pode ser um padrão de data e hora conforme descrito no [ICU manual] (http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax). Alternativamente esta pode ser uma string com o prefixo `php:` representando um formato que pode ser reconhecido pela classe PHP `Datetime`. Por favor, consulte para formatos suportados. Se isso não for definido, ele terá o valor de `Yii::$app->formatter->dateFormat`. Consulte a [[yii\validators\DateValidator::$format|documentação da API]] para mais detalhes. - `timestampAttribute`: o nome do atributo para que este validador possa atribuir o UNIX timestamp convertido a partir da entrada de data / hora. Este pode ser o mesmo atributo que está sendo validado. Se este for o caso, valor original será substituído pelo valor timestamp após a validação. Veja a seção ["Manipulando Datas com DatePicker"] (https://github.com/yiisoft/yii2-jui/blob/master/docs/guide/topics-date-picker.md) para exemplos de uso. @@ -270,8 +270,8 @@ Este validador não valida dados. Em vez disso, aplica um filtro no valor de ent > Dica: Se você quiser trimar valores de entrada, você deve utilizar o validador [trim](#trim). > Dica: Existem várias funções PHP que tem a assinatura esperada para o callback do `filter`. -> Por exemplo, para aplicar a conversão de tipos (usando por exemplo [intval](https://secure.php.net/manual/en/function.intval.php), -> [boolval](https://secure.php.net/manual/en/function.boolval.php), ...) para garantir um tipo específico para um atributo, +> Por exemplo, para aplicar a conversão de tipos (usando por exemplo [intval](https://www.php.net/manual/en/function.intval.php), +> [boolval](https://www.php.net/manual/en/function.boolval.php), ...) para garantir um tipo específico para um atributo, > você pode simplesmente especificar os nomes das funções do filtro sem a necessidade de envolvê-los em um closure: > > ```php diff --git a/docs/guide-ru/caching-data.md b/docs/guide-ru/caching-data.md index 1dab06a..cd64f09 100644 --- a/docs/guide-ru/caching-data.md +++ b/docs/guide-ru/caching-data.md @@ -95,13 +95,13 @@ $data = $cache->getOrSet($key, function () use ($user_id) { Yii поддерживает множество хранилищ кэша: -* [[yii\caching\ApcCache]]: использует расширение PHP [APC](https://secure.php.net/manual/en/book.apc.php). Эта опция считается самой быстрой при работе с кэшем в «толстом» централизованном приложении (т.е. один сервер, без выделенного балансировщика нагрузки и т.д.); +* [[yii\caching\ApcCache]]: использует расширение PHP [APC](https://www.php.net/manual/en/book.apc.php). Эта опция считается самой быстрой при работе с кэшем в «толстом» централизованном приложении (т.е. один сервер, без выделенного балансировщика нагрузки и т.д.); * [[yii\caching\DbCache]]: использует таблицу базы данных для хранения кэшированных данных. Чтобы использовать этот кэш, вы должны создать таблицу так, как это описано в [[yii\caching\DbCache::cacheTable]]; * [[yii\caching\DummyCache]]: является кэшем-пустышкой, не реализующим реального кэширования. Смысл этого компонента в упрощении кода, проверяющего наличие кэша. Вы можете использовать данный тип кэша и переключиться на реальное кэширование позже. Примеры: использование при разработке; если сервер не поддерживает кэш. Для извлечения данных в этом случае используется один и тот же код `Yii::$app->cache->get($key)`. При этом можно не беспокоиться, что `Yii::$app->cache` может быть `null`; * [[yii\caching\FileCache]]: использует обычные файлы для хранения кэшированных данных. Замечательно подходит для кэширования больших кусков данных, таких как содержимое страницы; -* [[yii\caching\MemCache]]: использует расширения PHP [memcache](https://secure.php.net/manual/en/book.memcache.php) и [memcached](https://secure.php.net/manual/en/book.memcached.php). Этот вариант может рассматриваться как самый быстрый при работе в распределенных приложениях (например, с несколькими серверами, балансировкой нагрузки и так далее); +* [[yii\caching\MemCache]]: использует расширения PHP [memcache](https://www.php.net/manual/en/book.memcache.php) и [memcached](https://www.php.net/manual/en/book.memcached.php). Этот вариант может рассматриваться как самый быстрый при работе в распределенных приложениях (например, с несколькими серверами, балансировкой нагрузки и так далее); * [[yii\redis\Cache]]: реализует компонент кэша на основе [Redis](http://redis.io/), хранилища ключ-значение (требуется Redis версии 2.6.12 или выше); -* [[yii\caching\WinCache]]: использует расширение PHP [WinCache](http://iis.net/downloads/microsoft/wincache-extension) ([смотрите также](https://secure.php.net/manual/en/book.wincache.php)); +* [[yii\caching\WinCache]]: использует расширение PHP [WinCache](http://iis.net/downloads/microsoft/wincache-extension) ([смотрите также](https://www.php.net/manual/en/book.wincache.php)); * [[yii\caching\XCache]] _(deprecated)_: использует расширение PHP [XCache](http://xcache.lighttpd.net/); * [[yii\caching\ZendDataCache]] _(deprecated)_: использует [Zend Data Cache](http://files.zend.com/help/Zend-Server-6/zend-server.htm#data_cache_component.htm). diff --git a/docs/guide-ru/caching-http.md b/docs/guide-ru/caching-http.md index d0ae15a..5df1440 100644 --- a/docs/guide-ru/caching-http.md +++ b/docs/guide-ru/caching-http.md @@ -104,7 +104,7 @@ Cache-Control: public, max-age=3600 ## Ограничитель кэша сессий -Когда на странице используются сессии, PHP автоматически отправляет некоторые связанные с кэшем HTTP заголовки, определённые в настройке `session.cache_limiter` в php.ini. Эти заголовки могут вмешиваться или отключать кэширование, которое вы ожидаете от `HttpCache`. Чтобы предотвратить эту проблему, по умолчанию `HttpCache` будет автоматически отключать отправку этих заголовков. Если вы хотите изменить это поведение, вы должны настроить свойство [[yii\filters\HttpCache::sessionCacheLimiter]]. Это свойство может принимать строковое значение, включая `public`, `private`, `private_no_expire` и `nocache`. Пожалуйста, обратитесь к руководству PHP о [session_cache_limiter()](https://secure.php.net/manual/en/function.session-cache-limiter.php) +Когда на странице используются сессии, PHP автоматически отправляет некоторые связанные с кэшем HTTP заголовки, определённые в настройке `session.cache_limiter` в php.ini. Эти заголовки могут вмешиваться или отключать кэширование, которое вы ожидаете от `HttpCache`. Чтобы предотвратить эту проблему, по умолчанию `HttpCache` будет автоматически отключать отправку этих заголовков. Если вы хотите изменить это поведение, вы должны настроить свойство [[yii\filters\HttpCache::sessionCacheLimiter]]. Это свойство может принимать строковое значение, включая `public`, `private`, `private_no_expire` и `nocache`. Пожалуйста, обратитесь к руководству PHP о [session_cache_limiter()](https://www.php.net/manual/en/function.session-cache-limiter.php) для объяснения этих значений. diff --git a/docs/guide-ru/concept-autoloading.md b/docs/guide-ru/concept-autoloading.md index f24e016..f3394b4 100644 --- a/docs/guide-ru/concept-autoloading.md +++ b/docs/guide-ru/concept-autoloading.md @@ -2,7 +2,7 @@ ================= Поиск и подключение файлов классов в Yii реализовано при помощи -[автозагрузки классов](https://secure.php.net/manual/ru/language.oop5.autoload.php). Фреймворк предоставляет свой быстрый +[автозагрузки классов](https://www.php.net/manual/ru/language.oop5.autoload.php). Фреймворк предоставляет свой быстрый совместимый с [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) автозагрузчик, который устанавливается в момент подключения `Yii.php`. @@ -14,7 +14,7 @@ При использовании автозагрузчика классов Yii следует соблюдать два простых правила создания и именования классов: -* Каждый класс должен принадлежать [пространству имён](https://secure.php.net/manual/ru/language.namespaces.php) +* Каждый класс должен принадлежать [пространству имён](https://www.php.net/manual/ru/language.namespaces.php) (то есть `foo\bar\MyClass`). * Каждый класс должен находиться в отдельном файле, путь к которому определятся следующим правилом: diff --git a/docs/guide-ru/concept-behaviors.md b/docs/guide-ru/concept-behaviors.md index 0148dcd..555b13a 100644 --- a/docs/guide-ru/concept-behaviors.md +++ b/docs/guide-ru/concept-behaviors.md @@ -341,7 +341,7 @@ $user->touch('login_time'); Сравнение с трейтами --------------------------------------------------- -Несмотря на то, что поведения схожи с [трейтами](https://secure.php.net/manual/ru/language.oop5.traits.php) тем, что +Несмотря на то, что поведения схожи с [трейтами](https://www.php.net/manual/ru/language.oop5.traits.php) тем, что "внедряют" свои свойства и методы в основной класс, они имеют множество отличий. Они оба имеют свои плюсы и минусы, и, скорее, дополняют друг друга, а не заменяют. diff --git a/docs/guide-ru/concept-events.md b/docs/guide-ru/concept-events.md index a6f7dba..9c75b31 100644 --- a/docs/guide-ru/concept-events.md +++ b/docs/guide-ru/concept-events.md @@ -9,7 +9,7 @@ Обработчики событий -------------- -Обработчик события - это [callback-функция PHP](https://secure.php.net/manual/ru/language.types.callable.php), которая выполняется при срабатывании события, к которому она присоединена. Можно использовать следующие callback-функции: +Обработчик события - это [callback-функция PHP](https://www.php.net/manual/ru/language.types.callable.php), которая выполняется при срабатывании события, к которому она присоединена. Можно использовать следующие callback-функции: - глобальную функцию PHP, указав строку с именем функции (без скобок), например, `'trim'`; - метод объекта, указав массив, содержащий строки с именами объекта и метода (без скобок), например, `[$object, 'methodName']`; diff --git a/docs/guide-ru/db-active-record.md b/docs/guide-ru/db-active-record.md index b059147..3331565 100644 --- a/docs/guide-ru/db-active-record.md +++ b/docs/guide-ru/db-active-record.md @@ -689,7 +689,7 @@ try { ``` > Note: в коде выше ради совместимости с PHP 5.x и PHP 7.x использованы два блока catch. -> `\Exception` реализует интерфейс [`\Throwable` interface](https://secure.php.net/manual/ru/class.throwable.php) +> `\Exception` реализует интерфейс [`\Throwable` interface](https://www.php.net/manual/ru/class.throwable.php) > начиная с PHP 7.0. Если вы используете только PHP 7 и новее, можете пропустить блок с `\Exception`. Второй способ заключается в том, чтобы перечислить операции с базой данных, которые требуют тразнакционного выполнения, diff --git a/docs/guide-ru/db-dao.md b/docs/guide-ru/db-dao.md index f168c3d..12ecc2e 100644 --- a/docs/guide-ru/db-dao.md +++ b/docs/guide-ru/db-dao.md @@ -1,7 +1,7 @@ Объекты доступа к данным (DAO) ============================== -Построенные поверх [PDO](https://secure.php.net/manual/ru/book.pdo.php), Yii DAO (объекты доступа к данным) обеспечивают +Построенные поверх [PDO](https://www.php.net/manual/ru/book.pdo.php), Yii DAO (объекты доступа к данным) обеспечивают объектно-ориентированный API для доступа к реляционным базам данных. Это основа для других, более продвинутых, методов доступа к базам данных, включая [построитель запросов](db-query-builder.md) и [active record](db-active-record.md). @@ -62,7 +62,7 @@ return [ > Tip: Вы можете настроить несколько компонентов подключения, если в вашем приложении используется несколько баз данных. При настройке подключения, вы должны обязательно указывать Имя Источника Данных (DSN) через параметр [[yii\db\Connection::dsn|dsn]]. -Формат DSN отличается для разных баз данных. Дополнительное описание смотрите в [справочнике PHP](https://secure.php.net/manual/ru/pdo.construct.php). +Формат DSN отличается для разных баз данных. Дополнительное описание смотрите в [справочнике PHP](https://www.php.net/manual/ru/pdo.construct.php). Ниже представлены несколько примеров: * MySQL, MariaDB: `mysql:host=localhost;dbname=mydatabase` @@ -174,7 +174,7 @@ $post = Yii::$app->db->createCommand('SELECT * FROM post WHERE id=:id AND status ->queryOne(); ``` -Привязка переменных реализована через [подготавливаемые запросы](https://secure.php.net/manual/ru/mysqli.quickstart.prepared-statements.php). +Привязка переменных реализована через [подготавливаемые запросы](https://www.php.net/manual/ru/mysqli.quickstart.prepared-statements.php). Помимо предотвращения атак путём SQL инъекций, это увеличивает производительность, так как запрос подготавливается один раз, а потом выполняется много раз с разными параметрами. Например, @@ -338,7 +338,7 @@ try { ``` > Note: в коде выше ради совместимости с PHP 5.x и PHP 7.x использованы два блока catch. -> `\Exception` реализует интерфейс [`\Throwable` interface](https://secure.php.net/manual/ru/class.throwable.php) +> `\Exception` реализует интерфейс [`\Throwable` interface](https://www.php.net/manual/ru/class.throwable.php) > начиная с PHP 7.0. Если вы используете только PHP 7 и новее, можете пропустить блок с `\Exception`. При вызове метода [[yii\db\Connection::beginTransaction()|beginTransaction()]], будет запущена новая транзакция. diff --git a/docs/guide-ru/helper-array.md b/docs/guide-ru/helper-array.md index 0397416..e0219c6 100644 --- a/docs/guide-ru/helper-array.md +++ b/docs/guide-ru/helper-array.md @@ -1,6 +1,6 @@ ArrayHelper =========== -Вдобавок к [богатому набору функций](https://secure.php.net/manual/ru/book.array.php) для работы с массивами, которые есть в самом PHP, хелпер Yii Array предоставляет свои статические функции - возможно они могут быть вам полезны. +Вдобавок к [богатому набору функций](https://www.php.net/manual/ru/book.array.php) для работы с массивами, которые есть в самом PHP, хелпер Yii Array предоставляет свои статические функции - возможно они могут быть вам полезны. ## Получение значений @@ -110,7 +110,7 @@ $type = ArrayHelper::remove($array, 'type'); ## Проверка наличия ключей -`ArrayHelper::keyExists` работает так же, как и стандартный [array_key_exists](https://secure.php.net/manual/ru/function.array-key-exists.php), +`ArrayHelper::keyExists` работает так же, как и стандартный [array_key_exists](https://www.php.net/manual/ru/function.array-key-exists.php), но также может проверять ключи без учёта регистра: ```php @@ -245,7 +245,7 @@ ArrayHelper::multisort($data, function($item) { ``` Третий аргумент определяет способ сортировки – от большего к меньшему или от меньшего к большему. В случае, если мы сортируем по одному ключу, передаем `SORT_ASC` или `SORT_DESC`. Если сортировка осуществляется по нескольким ключам, вы можете назначить направление сортировки для каждого из них с помощью массива. -Последний аргумент – это флаг, который используется в стандартной функции PHP `sort()`. Посмотреть его возможные значения можно [тут](https://secure.php.net/manual/ru/function.sort.php). +Последний аргумент – это флаг, который используется в стандартной функции PHP `sort()`. Посмотреть его возможные значения можно [тут](https://www.php.net/manual/ru/function.sort.php). ## Определение типа массива @@ -335,7 +335,7 @@ $data = ArrayHelper::toArray($posts, [ Для таких случаев [[yii\helpers\ArrayHelper]] предоставляет [[yii\helpers\ArrayHelper::isIn()|isIn()]] и [[yii\helpers\ArrayHelper::isSubset()|isSubset()]]. Методы принимают такие же параметры, что и -[in_array()](https://secure.php.net/manual/ru/function.in-array.php). +[in_array()](https://www.php.net/manual/ru/function.in-array.php). ```php // true diff --git a/docs/guide-ru/helper-html.md b/docs/guide-ru/helper-html.md index 5ffb14c..198e46f 100644 --- a/docs/guide-ru/helper-html.md +++ b/docs/guide-ru/helper-html.md @@ -2,7 +2,7 @@ Html-помощник ============= Каждое веб-приложение формирует большое количество HTML-разметки. Если разметка статическая, её можно эффективно -сформировать [смешиванием PHP и HTML в одном файле](https://secure.php.net/manual/ru/language.basic-syntax.phpmode.php), но +сформировать [смешиванием PHP и HTML в одном файле](https://www.php.net/manual/ru/language.basic-syntax.phpmode.php), но когда разметка динамическая, становится сложно формировать её без дополнительной помощи. Yii предоставляет такую помощь в виде Html-помощника, который обеспечивает набор статических методов для обработки часто-используемых HTML тэгов, их атрибутов и содержимого. @@ -155,8 +155,8 @@ Html::removeCssStyle($options, ['width', 'height']); ### Экранирование контента Для корректного и безопасного отображения контента специальные символы в HTML-коде должны быть экранированы. В чистом -PHP это осуществляется с помощью функций [htmlspecialchars](https://secure.php.net/manual/ru/function.htmlspecialchars.php) -и [htmlspecialchars_decode](https://secure.php.net/manual/ru/function.htmlspecialchars-decode.php). Проблема использования +PHP это осуществляется с помощью функций [htmlspecialchars](https://www.php.net/manual/ru/function.htmlspecialchars.php) +и [htmlspecialchars_decode](https://www.php.net/manual/ru/function.htmlspecialchars-decode.php). Проблема использования этих функций заключается в том, что приходится указывать кодировку и дополнительные флаги во время каждого вызова. Поскольку флаги всё время одинаковы, а кодировка остаётся одной и той же в пределах приложения, Yii в целях безопасности предоставляет два компактных и простых в использовании метода: diff --git a/docs/guide-ru/input-file-upload.md b/docs/guide-ru/input-file-upload.md index eb9a667..5dd78ee 100644 --- a/docs/guide-ru/input-file-upload.md +++ b/docs/guide-ru/input-file-upload.md @@ -123,7 +123,7 @@ class SiteController extends Controller Сначала нужно добавить в правило валидации `file` параметр `maxFiles` для ограничения максимального количества загружаемых одновременно файлов. Установка `maxFiles` равным `0` означает снятие ограничений на количество файлов, которые могут быть загружены одновременно. Максимально разрешенное количество одновременно закачиваемых файлов -также ограничивается директивой PHP [`max_file_uploads`](https://secure.php.net/manual/ru/ini.core.php#ini.max-file-uploads), +также ограничивается директивой PHP [`max_file_uploads`](https://www.php.net/manual/ru/ini.core.php#ini.max-file-uploads), и по умолчанию равно 20. Метод `upload()` нужно изменить для сохранения загруженных файлов по одному. ```php diff --git a/docs/guide-ru/intro-upgrade-from-v1.md b/docs/guide-ru/intro-upgrade-from-v1.md index af2239a..7dbb7e1 100644 --- a/docs/guide-ru/intro-upgrade-from-v1.md +++ b/docs/guide-ru/intro-upgrade-from-v1.md @@ -28,16 +28,16 @@ Yii 2.0 широко использует [Composer](https://getcomposer.org/), версией 5.2, которая использовалась Yii 1.1. Таким образом, существует много различий в языке, которые вы должны принимать во внимание: -- [Пространства имён](https://secure.php.net/manual/ru/language.namespaces.php); -- [Анонимные функции](https://secure.php.net/manual/ru/functions.anonymous.php); +- [Пространства имён](https://www.php.net/manual/ru/language.namespaces.php); +- [Анонимные функции](https://www.php.net/manual/ru/functions.anonymous.php); - Использование короткого синтаксиса для массивов: `[...элементы...]` вместо `array(...элементы...)`; - Использование короткого echo ` Note: При использовании Heredoc, будьте осторожны с именами переменных в коде JS, поскольку переменные, начинающиеся с `$`, могут интерпретироваться как переменные PHP, которые будут заменены их содержимым. > jQuery функция в форме `$(` или `$.` не интерпретируется как переменная PHP и может безопасно использоваться. diff --git a/docs/guide-ru/output-formatting.md b/docs/guide-ru/output-formatting.md index 811f4bb..1a129de 100644 --- a/docs/guide-ru/output-formatting.md +++ b/docs/guide-ru/output-formatting.md @@ -32,7 +32,7 @@ Formatter может быть использован двумя различны ``` Все данные, отображаемые через компонент formatter, будут локализованы, если -[расширение PHP intl](https://secure.php.net/manual/ru/book.intl.php) было установлено. Для этого вы можете настроить свойство +[расширение PHP intl](https://www.php.net/manual/ru/book.intl.php) было установлено. Для этого вы можете настроить свойство [[yii\i18n\Formatter::locale|locale]]. Если оно не было настроено, то в качестве локали будет использован [[yii\base\Application::language|язык приложения]]. Подробнее смотрите в разделе «[интернационализация](tutorial-i18n.md)». Компонент форматирования будет выбирать корректный формат для даты и чисел в соответствии с локалью, включая имена @@ -51,7 +51,7 @@ echo Yii::$app->formatter->asDate('2014-01-01'); // выведет: 1 январ ``` > Обратите внимание, что форматирование может различаться между различными версиями библиотеки ICU, собранных с PHP, -> а также на основе того установлено ли [расширение PHP intl](https://secure.php.net/manual/ru/book.intl.php) или нет. +> а также на основе того установлено ли [расширение PHP intl](https://www.php.net/manual/ru/book.intl.php) или нет. > Таким образом, чтобы гарантировать, что ваш сайт будет одинаково отображать данные во всех окружениях рекомендуется > установить расширение PHP intl во всех окружениях и проверить, что версия библиотеки ICU совпадает. > См. также: [Настройка PHP окружения для интернационализации](tutorial-i18n.md#setup-environment). @@ -115,7 +115,7 @@ echo Yii::$app->formatter->asDate('2014-01-01'); // выведет: 1 январ Дополнительно вы можете задать специальный формат, используя синтаксис, заданный [ICU Project](http://site.icu-project.org/), который описан в руководстве ICU по следующему адресу: . Также вы можете использовать синтаксис, который распознаётся -PHP-функцией [date()](https://secure.php.net/manual/ru/function.date.php), используя строку с префиксом `php:`. +PHP-функцией [date()](https://www.php.net/manual/ru/function.date.php), используя строку с префиксом `php:`. ```php // ICU форматирование @@ -170,7 +170,7 @@ echo Yii::$app->formatter->asTime('2014-10-06 14:41:00 CEST'); // 14:41:00 [[yii\i18n\Formatter::thousandSeparator|тысячного разделителя]], которые были заданы в соответствии с локалью. Для более сложной конфигурации [[yii\i18n\Formatter::numberFormatterOptions]] и [[yii\i18n\Formatter::numberFormatterTextOptions]] -могут быть использованы для настройки внутренне используемого [класса NumberFormatter](https://secure.php.net/manual/ru/class.numberformatter.php). +могут быть использованы для настройки внутренне используемого [класса NumberFormatter](https://www.php.net/manual/ru/class.numberformatter.php). Например, чтобы настроить максимальное и минимальное количество знаков после запятой, вы можете настроить свойство [[yii\i18n\Formatter::numberFormatterOptions]] как в примере ниже: diff --git a/docs/guide-ru/security-passwords.md b/docs/guide-ru/security-passwords.md index 8861e1d..749776b 100644 --- a/docs/guide-ru/security-passwords.md +++ b/docs/guide-ru/security-passwords.md @@ -7,7 +7,7 @@ Для того, чтобы обеспечить повышенную безопасность паролей ваших пользователей даже в худшем случае (ваше приложение взломано), нужно использовать алгоритм шифрования, устойчивый к атаке перебором. Лучший вариант в текущий -момент `bcrypt`. В PHP вы можете использовать хеши `bcrypt` через [функцию crypt](https://secure.php.net/manual/en/function.crypt.php). +момент `bcrypt`. В PHP вы можете использовать хеши `bcrypt` через [функцию crypt](https://www.php.net/manual/en/function.crypt.php). Yii обеспечивает две вспомогательные функции, которые упрощают использование функции `crypt` для генерации и проверки пароля. diff --git a/docs/guide-ru/start-databases.md b/docs/guide-ru/start-databases.md index 18d6549..9889d89 100644 --- a/docs/guide-ru/start-databases.md +++ b/docs/guide-ru/start-databases.md @@ -45,7 +45,7 @@ INSERT INTO `country` VALUES ('US','United States',322976000); Настраиваем подключение к БД ------------------------------------------------------------------------- -Перед продолжением убедитесь, что у вас установлены PHP-расширение [PDO](https://secure.php.net/manual/ru/book.pdo.php) и драйвер PDO для используемой вами базы данных (например, `pdo_mysql` для MySQL). Это базовое требование в случае использования вашим приложением реляционной базы данных. +Перед продолжением убедитесь, что у вас установлены PHP-расширение [PDO](https://www.php.net/manual/ru/book.pdo.php) и драйвер PDO для используемой вами базы данных (например, `pdo_mysql` для MySQL). Это базовое требование в случае использования вашим приложением реляционной базы данных. После того, как они установлены, откройте файл `config/db.php` и измените параметры на верные для вашей базы данных. По умолчанию этот файл содержит следующее: ```php diff --git a/docs/guide-ru/start-installation.md b/docs/guide-ru/start-installation.md index fdc405c..8d9aa87 100644 --- a/docs/guide-ru/start-installation.md +++ b/docs/guide-ru/start-installation.md @@ -122,7 +122,7 @@ php requirements.php Для корректной работы фреймворка вам необходима установка PHP, соответствующая его минимальным требованиям. Основное требование — PHP версии 5.4 и выше. Если ваше приложение работает с базой данных, необходимо установить -[расширение PHP PDO](https://secure.php.net/manual/ru/pdo.installation.php) и соответствующий драйвер +[расширение PHP PDO](https://www.php.net/manual/ru/pdo.installation.php) и соответствующий драйвер (например, `pdo_mysql` для MySQL). @@ -174,7 +174,7 @@ DocumentRoot "path/to/basic/web" ### Рекомендуемые настройки Nginx -PHP должен быть установлен как [FPM SAPI](https://secure.php.net/manual/ru/install.fpm.php) для [Nginx](http://wiki.nginx.org/). +PHP должен быть установлен как [FPM SAPI](https://www.php.net/manual/ru/install.fpm.php) для [Nginx](http://wiki.nginx.org/). Используйте следующие параметры Nginx и не забудьте заменить `path/to/basic/web` на корректный путь к `basic/web` и `mysite.test` на ваше имя хоста. diff --git a/docs/guide-ru/structure-applications.md b/docs/guide-ru/structure-applications.md index df5238d..570cbcc 100644 --- a/docs/guide-ru/structure-applications.md +++ b/docs/guide-ru/structure-applications.md @@ -349,7 +349,7 @@ $width = \Yii::$app->params['thumbnail.size'][0]; Данное свойство предоставляет альтернативный способ установки временной зоны в процессе работы приложения. Путем указания данного свойства, вы по существу вызываете PHP функцию -[date_default_timezone_set()](https://secure.php.net/manual/ru/function.date-default-timezone-set.php). Например, +[date_default_timezone_set()](https://www.php.net/manual/ru/function.date-default-timezone-set.php). Например, ```php [ diff --git a/docs/guide-ru/structure-models.md b/docs/guide-ru/structure-models.md index b2452dc..37080d2 100644 --- a/docs/guide-ru/structure-models.md +++ b/docs/guide-ru/structure-models.md @@ -29,7 +29,7 @@ $model->name = 'example'; echo $model->name; ``` -Также возможно получить доступ к атрибутам как к элементам массива, спасибо поддержке [ArrayAccess](https://secure.php.net/manual/ru/class.arrayaccess.php) и [Traversable](https://secure.php.net/manual/ru/class.traversable.php) +Также возможно получить доступ к атрибутам как к элементам массива, спасибо поддержке [ArrayAccess](https://www.php.net/manual/ru/class.arrayaccess.php) и [Traversable](https://www.php.net/manual/ru/class.traversable.php) в [[yii\base\Model]]: ```php diff --git a/docs/guide-ru/tutorial-core-validators.md b/docs/guide-ru/tutorial-core-validators.md index b365984..79700c8 100644 --- a/docs/guide-ru/tutorial-core-validators.md +++ b/docs/guide-ru/tutorial-core-validators.md @@ -117,7 +117,7 @@ public function rules() - `format`: формат даты/времени, согласно которому должна быть сделана проверка. Значение может быть паттерном, описанным в [руководстве ICU](http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax) или форматом PHP префиксированным `php:`. Формат должен приниматься классом `Datetime`. Подробнее о нём можно - прочитать в [руководстве PHP по date_create_from_format()](https://secure.php.net/manual/ru/datetime.createfromformat.php). + прочитать в [руководстве PHP по date_create_from_format()](https://www.php.net/manual/ru/datetime.createfromformat.php). Если значение не задано, используется `Yii::$app->formatter->dateFormat`. Подробнее читайте в [[yii\validators\DateValidator::$format|документации по API]]. - `timestampAttribute`: имя атрибута, которому данный валидатор может присваивать значение UNIX timestamp, diff --git a/docs/guide-ru/tutorial-i18n.md b/docs/guide-ru/tutorial-i18n.md index d010588..ee07911 100644 --- a/docs/guide-ru/tutorial-i18n.md +++ b/docs/guide-ru/tutorial-i18n.md @@ -134,7 +134,7 @@ echo \Yii::t('app', 'Balance: {0}', $sum); ### Указатели с расширенным форматированием -Чтобы использовать расширенные возможности, вам необходимо установить и включить [PHP-расширение intl](https://secure.php.net/manual/ru/intro.intl.php). +Чтобы использовать расширенные возможности, вам необходимо установить и включить [PHP-расширение intl](https://www.php.net/manual/ru/intro.intl.php). После этого вам станет доступен расширенный синтаксис указателей, а также сокращённая запись `{placeholderName, argumentType}`, эквивалентная форме `{placeholderName, argumentType, argumentStyle}`, позволяющая определять стиль форматирования. @@ -554,13 +554,13 @@ class TranslationEventHandler Настройка PHP-окружения ------------------------------------------------------------ -Для работы с большей частью функций интернационализации Yii использует [PHP-расширение intl](https://secure.php.net/manual/ru/book.intl.php). +Для работы с большей частью функций интернационализации Yii использует [PHP-расширение intl](https://www.php.net/manual/ru/book.intl.php). Например, это расширение используют классы, отвечающие за форматирование чисел и дат [[yii\i18n\Formatter]] и за форматирование строк [[yii\i18n\MessageFormatter]]. Оба класса поддерживают базовый функционал даже в том случае, если расширение `intl` не установлено. Однако этот запасной вариант более или менее будет работать только для сайтов на английском языке, хотя даже для них большая часть широких возможностей расширения `intl` не будет доступна, поэтому его установка настоятельно рекомендуется. -[PHP-расширение intl](https://secure.php.net/manual/ru/book.intl.php) основано на [библиотеке ICU](http://site.icu-project.org/), которая +[PHP-расширение intl](https://www.php.net/manual/ru/book.intl.php) основано на [библиотеке ICU](http://site.icu-project.org/), которая описывает правила форматирования для различных локалей. Поэтому следует помнить, что форматирование чисел и дат вместе с синтаксисом форматирования может отличаться в зависимости от версии библиотеки ICU, которая была скомпилирована в вашем дистрибутиве PHP. diff --git a/docs/guide-ru/tutorial-performance-tuning.md b/docs/guide-ru/tutorial-performance-tuning.md index fa9162b..8e22acd 100644 --- a/docs/guide-ru/tutorial-performance-tuning.md +++ b/docs/guide-ru/tutorial-performance-tuning.md @@ -11,7 +11,7 @@ Хорошо сконфигурированное окружение PHP очень важно. Для получения максимальной производительности, - Используйте последнюю стабильную версию PHP. Мажорные релизы PHP могут принести значительные улучшения производительности. -- Включите кеширование байткода в [Opcache](https://secure.php.net/manual/ru/book.opcache.php) (PHP 5.5 и старше) или [APC](http://secure.php.net/manual/ru/book.apc.php) +- Включите кеширование байткода в [Opcache](https://www.php.net/manual/ru/book.opcache.php) (PHP 5.5 и старше) или [APC](https://www.php.net/manual/ru/book.apc.php) (PHP 5.4 и более ранние версии). Кеширование байткода позволяет избежать затрат времени на обработку и подключение PHP скриптов при каждом входящем запросе. @@ -213,4 +213,4 @@ composer dumpautoload -o - [Отладочный тулбар Yii и отладчик](https://github.com/yiisoft/yii2-debug/blob/master/docs/guide/README.md) - [Профайлер XDebug](http://xdebug.org/docs/profiler) -- [XHProf](https://secure.php.net/manual/en/book.xhprof.php) +- [XHProf](https://www.php.net/manual/en/book.xhprof.php) diff --git a/docs/guide-tr/intro-yii.md b/docs/guide-tr/intro-yii.md index 55e129d..7807853 100644 --- a/docs/guide-tr/intro-yii.md +++ b/docs/guide-tr/intro-yii.md @@ -34,4 +34,4 @@ Gereksinimler ve Önkoşullar Yii 2.0, PHP 5.4.0 veya üstü sürüm gerektirir ve PHP 7'nin en son sürümü ile en iyi şekilde çalışır. Her bir Yii sürümünde yer alan gereksinim denetleyicisini çalıştırarak, daha ayrıntılı gereksinimleri ayrı ayrı özellikler için bulabilirsiniz. -Yii OOP temelli bir kütüphane olduğu için Yii'yi kullanmak, nesne yönelimli programlama (OOP) hakkında temel bilgi gerektirir. Yii 2.0 ayrıca PHP'nin [namespaceler](https://www.php.net/manual/en/language.namespaces.php) ve [traitler](https://secure.php.net/manual/en/language.oop5.traits.php) gibi son özelliklerinden de yararlanır. Bu kavramları anlamak, Yii 2.0'ı daha kolay anlamanıza yardımcı olacaktır. +Yii OOP temelli bir kütüphane olduğu için Yii'yi kullanmak, nesne yönelimli programlama (OOP) hakkında temel bilgi gerektirir. Yii 2.0 ayrıca PHP'nin [namespaceler](https://www.php.net/manual/en/language.namespaces.php) ve [traitler](https://www.php.net/manual/en/language.oop5.traits.php) gibi son özelliklerinden de yararlanır. Bu kavramları anlamak, Yii 2.0'ı daha kolay anlamanıza yardımcı olacaktır. diff --git a/docs/guide-tr/start-prerequisites.md b/docs/guide-tr/start-prerequisites.md index 26f8804..7755c2f 100644 --- a/docs/guide-tr/start-prerequisites.md +++ b/docs/guide-tr/start-prerequisites.md @@ -4,7 +4,7 @@ Yii'yi öğrenmesi, diğer PHP kütüphaneleri kadar zor olmasada, yine de başl ## PHP -Yii bir PHP kütüphanesidir, bu yüzden [PHP Dil Başvuru Kılavuzunu](https://secure.php.net/manual/tr/langref.php) okuduğunuzdan ve anladığınızdan emin olun. Yii ile geliştirirken, nesne yönelimli bir şekilde kod yazacaksınız, bu yüzden [Sınıflar ve Nesneler](https://secure.php.net/manual/tr/language.oop5.basic.php) gibi [ad alanları](https://www.php.net/manual/en/language.namespaces.php)na aşina olduğunuzdan emin olun. +Yii bir PHP kütüphanesidir, bu yüzden [PHP Dil Başvuru Kılavuzunu](https://www.php.net/manual/tr/langref.php) okuduğunuzdan ve anladığınızdan emin olun. Yii ile geliştirirken, nesne yönelimli bir şekilde kod yazacaksınız, bu yüzden [Sınıflar ve Nesneler](https://www.php.net/manual/tr/language.oop5.basic.php) gibi [ad alanları](https://www.php.net/manual/en/language.namespaces.php)na aşina olduğunuzdan emin olun. ## Nesne Yönelimli Programlama (OOP) diff --git a/docs/guide-uk/concept-autoloading.md b/docs/guide-uk/concept-autoloading.md index acda24c..f8efe38 100644 --- a/docs/guide-uk/concept-autoloading.md +++ b/docs/guide-uk/concept-autoloading.md @@ -2,7 +2,7 @@ ======================= Пошук і підключення файлів класів в Yii реалізовано за допомогою -[автозавантаження класів](https://secure.php.net/manual/ru/language.oop5.autoload.php). +[автозавантаження класів](https://www.php.net/manual/ru/language.oop5.autoload.php). Фреймворк надає власний швидкісний автозавантажувач, що сумісний з [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md), який встановлюється в момент підключення файлу `Yii.php`. diff --git a/docs/guide-uk/intro-upgrade-from-v1.md b/docs/guide-uk/intro-upgrade-from-v1.md index b273366..7a3e79e 100644 --- a/docs/guide-uk/intro-upgrade-from-v1.md +++ b/docs/guide-uk/intro-upgrade-from-v1.md @@ -31,15 +31,15 @@ Yii 2.0 використовує PHP 5.4 або вище, який включа Нижче наведені основні зміни в PHP: - [Простори імен](https://www.php.net/manual/en/language.namespaces.php); -- [Анонімні функції](https://secure.php.net/manual/en/functions.anonymous.php); +- [Анонімні функції](https://www.php.net/manual/en/functions.anonymous.php); - Використання короткого синтаксису для масивів: `[...елементи...]` замість `array(...елементи...)`; - Використання тегів ` -Для використання [Nginx](http://wiki.nginx.org/) вам потрібно встановити PHP як [FPM SAPI](https://secure.php.net/install.fpm). +Для використання [Nginx](http://wiki.nginx.org/) вам потрібно встановити PHP як [FPM SAPI](https://www.php.net/install.fpm). Використовуйте наступні параметри Nginx, замінивши `path/to/basic/web` на коректний шлях до `basic/web`, а `mysite.test` на актуальний домен. diff --git a/docs/guide-uk/structure-applications.md b/docs/guide-uk/structure-applications.md index 4db7787..9ae7057 100644 --- a/docs/guide-uk/structure-applications.md +++ b/docs/guide-uk/structure-applications.md @@ -356,7 +356,7 @@ $width = \Yii::$app->params['thumbnail.size'][0]; Дана властивість надає альтернативний спосіб встановлення часової зони за замовчуванням у процесі роботи додатка. Таким чином, вказуючи дану властивість, ви, по суті, викликаєте PHP-функцію -[date_default_timezone_set()](https://secure.php.net/manual/en/function.date-default-timezone-set.php). Наприклад, +[date_default_timezone_set()](https://www.php.net/manual/en/function.date-default-timezone-set.php). Наприклад, ```php [ diff --git a/docs/guide-uk/structure-models.md b/docs/guide-uk/structure-models.md index fa354c2..ec9fbb4 100644 --- a/docs/guide-uk/structure-models.md +++ b/docs/guide-uk/structure-models.md @@ -37,7 +37,7 @@ echo $model->name; ``` Ви також можете отримувати доступ до атрибутів як до елементів масиву, завдяки підтримці -[ArrayAccess](https://secure.php.net/manual/en/class.arrayaccess.php) та [ArrayIterator](https://secure.php.net/manual/en/class.arrayiterator.php) +[ArrayAccess](https://www.php.net/manual/en/class.arrayaccess.php) та [ArrayIterator](https://www.php.net/manual/en/class.arrayiterator.php) у класі [[yii\base\Model]]: ```php diff --git a/docs/guide-uz/intro-upgrade-from-v1.md b/docs/guide-uz/intro-upgrade-from-v1.md index 791fc28..6a4911f 100644 --- a/docs/guide-uz/intro-upgrade-from-v1.md +++ b/docs/guide-uz/intro-upgrade-from-v1.md @@ -25,16 +25,16 @@ Yii 2.0 talqin Yii 1.1 talqinda qo'llanilgan PHP 5.2 ga nisbatan ancha yaxshilan Shu tufayli siz nazarda tutishingiz kerak bo'lgan tildagi ko'p o'zgarishlar mavjud. Quyida PHP ning asosiy o'zgarishlari keltirilgan: -- [Nomlar sohasi](https://secure.php.net/manual/ru/language.namespaces.php); -- [Anonim funksiyalar](https://secure.php.net/manual/ru/functions.anonymous.php); +- [Nomlar sohasi](https://www.php.net/manual/ru/language.namespaces.php); +- [Anonim funksiyalar](https://www.php.net/manual/ru/functions.anonymous.php); - Massivlar uchun qisqa sintaksisni qo'llash: `[...elementlar...]` ni `array(...элементы...)` o'rniga; - Qisqartirilgan teglarni qo'llash ` ------------------------------------------------------------------------- -Ishni boshlashdan oldin sizda [PDO](https://secure.php.net/manual/ru/book.pdo.php) kengaytmasi o'rnatilganiga amin bo'ling va PDO-boshqaruvchisi ma'lumotlar ombori bilan boshqara olishingiz uchun(misol uchun, `pdo_mysql` MYSql uchun). Bu siz aloqali ma'lumtolar ombori bilan ishlashingiz uchun assosiy talablardir. +Ishni boshlashdan oldin sizda [PDO](https://www.php.net/manual/ru/book.pdo.php) kengaytmasi o'rnatilganiga amin bo'ling va PDO-boshqaruvchisi ma'lumotlar ombori bilan boshqara olishingiz uchun(misol uchun, `pdo_mysql` MYSql uchun). Bu siz aloqali ma'lumtolar ombori bilan ishlashingiz uchun assosiy talablardir. Endi esa, hammasini o'rnatib bo'lganingizdan so'ng, `config/db.php` oching va sozlamalarni o`zingizni ma'lumotlar omboringiz sozlamalariga o'zgartiring. Boshlanish sozlamalar quydagichadir: ```php diff --git a/docs/guide-uz/start-installation.md b/docs/guide-uz/start-installation.md index 5925ef0..7c4a627 100644 --- a/docs/guide-uz/start-installation.md +++ b/docs/guide-uz/start-installation.md @@ -97,7 +97,7 @@ cd basic php requirements.php ``` -Freymvork to'g'ri ishlashi uchun PHPni minimal talablarga javob beradigan tarzda sozlashingiz kerak. Asosiy talablardan biri bu PHP versiyasi 5.4 va undan yuqori bolishi kerak. Agar veb-ilovangiz ma'lumotlar bazasi bilan ishlayotgan bo'lsa , [PHP PDO kengaytmasini](https://secure.php.net/manual/ru/pdo.installation.php) va tegishli drayverni (masalan, MySQL uchun pdo_mysql ) o'rnatishingiz kerak. +Freymvork to'g'ri ishlashi uchun PHPni minimal talablarga javob beradigan tarzda sozlashingiz kerak. Asosiy talablardan biri bu PHP versiyasi 5.4 va undan yuqori bolishi kerak. Agar veb-ilovangiz ma'lumotlar bazasi bilan ishlayotgan bo'lsa , [PHP PDO kengaytmasini](https://www.php.net/manual/ru/pdo.installation.php) va tegishli drayverni (masalan, MySQL uchun pdo_mysql ) o'rnatishingiz kerak. Web-server sozlamasi @@ -139,7 +139,7 @@ DocumentRoot "path/to/basic/web" ### Tavsiya etilgan Nginx sozlamalari -PHP Nginx uchun [FPM SAPI](https://secure.php.net/manual/ru/install.fpm.php) sifatida o'rnatilishi kerak. Quyidagi [Nginx](http://wiki.nginx.org/) sozlamalaridan foydalaning va `basic/web` va `mysite.test` to'g'ri manzilini hostname-ga almashtirishni va `path/to/basic/web` ni almashtirishni unutmang. +PHP Nginx uchun [FPM SAPI](https://www.php.net/manual/ru/install.fpm.php) sifatida o'rnatilishi kerak. Quyidagi [Nginx](http://wiki.nginx.org/) sozlamalaridan foydalaning va `basic/web` va `mysite.test` to'g'ri manzilini hostname-ga almashtirishni va `path/to/basic/web` ni almashtirishni unutmang. ``` server { diff --git a/docs/guide-vi/intro-yii.md b/docs/guide-vi/intro-yii.md index e61839d..6548c58 100644 --- a/docs/guide-vi/intro-yii.md +++ b/docs/guide-vi/intro-yii.md @@ -51,5 +51,5 @@ Yii 2.0 đòi hỏi phiên bản PHP 5.4.0 hoặc cao hơn. Bạn có thể ch kiểm tra xem những gì các đặc điểm cụ thể của từng cấu hình PHP. Để tìm hiểu Yii, bạn cần có kiến thức cơ bản về lập trình hướng đối tượng (OOP), vì Yii là một framework hướng đối tượng -thuần túy. Yii 2.0 cũng sử dụng các tính năng PHP mới nhất, chẳng hạn như [namespaces](https://www.php.net/manual/en/language.namespaces.php) và [traits](https://secure.php.net/manual/en/language.oop5.traits.php). +thuần túy. Yii 2.0 cũng sử dụng các tính năng PHP mới nhất, chẳng hạn như [namespaces](https://www.php.net/manual/en/language.namespaces.php) và [traits](https://www.php.net/manual/en/language.oop5.traits.php). Hiểu được những khái niệm này sẽ giúp bạn nhanh chóng nắm bắt Yii 2.0. diff --git a/docs/guide-vi/start-installation.md b/docs/guide-vi/start-installation.md index f354d1d..30772c4 100644 --- a/docs/guide-vi/start-installation.md +++ b/docs/guide-vi/start-installation.md @@ -110,7 +110,7 @@ Các yêu cầu Yii. Bạn có thể kiểm tra xem các yêu cầu tối thiể ``` Bạn nên cấu hình cài đặt PHP của bạn để nó đáp ứng các yêu cầu tối thiểu của Yii. Diều quan trọng nhất, bạn nên có PHP 5.4 hoặc hơn. Bạn cũng nên cài đặt -các gói [PDO PHP Extension](https://secure.php.net/manual/en/pdo.installation.php) và một trình điều khiển cơ sở dữ liệu tương ứng +các gói [PDO PHP Extension](https://www.php.net/manual/en/pdo.installation.php) và một trình điều khiển cơ sở dữ liệu tương ứng (như là `pdo_mysql` cho CSDL MySQL), nếu ứng dụng của bạn cần thao tác với CSLD. @@ -161,7 +161,7 @@ DocumentRoot "path/to/basic/web" ### Các khuyến nghị khi cấu hình Nginx -Để sử dụng [Nginx](http://wiki.nginx.org/), bạn cần phải cài đặt [FPM SAPI](https://secure.php.net/install.fpm). +Để sử dụng [Nginx](http://wiki.nginx.org/), bạn cần phải cài đặt [FPM SAPI](https://www.php.net/install.fpm). Bạn có thể cấu hình Nginx như sau, thay thế đường dẫn `path/to/basic/web` với đường dẫn thực tế ở `basic/web` và `mysite.test` thay thế bằng tên máy chủ thực tế để cung cấp dịch vụ. diff --git a/docs/guide-vi/start-prerequisites.md b/docs/guide-vi/start-prerequisites.md index 4725041..642c53e 100644 --- a/docs/guide-vi/start-prerequisites.md +++ b/docs/guide-vi/start-prerequisites.md @@ -4,8 +4,8 @@ Quá trình học Yii không quá khó cũng như các framework PHP khác nhưn ## PHP -Yii là một framework PHP nên hãy đảm bảo bạn đã [đọc và hiểu ngôn ngữ của nó](https://secure.php.net/manual/en/langref.php). -Khi phát triển với Yii, bạn sẽ viết code theo hướng đối tượng, vì vậy hãy đảm bảo rằng bạn đã quen với [Classes và Objects](https://secure.php.net/manual/en/language.oop5.basic.php) cũng như [namespaces](https://www.php.net/manual/en/language.namespaces.php). +Yii là một framework PHP nên hãy đảm bảo bạn đã [đọc và hiểu ngôn ngữ của nó](https://www.php.net/manual/en/langref.php). +Khi phát triển với Yii, bạn sẽ viết code theo hướng đối tượng, vì vậy hãy đảm bảo rằng bạn đã quen với [Classes và Objects](https://www.php.net/manual/en/language.oop5.basic.php) cũng như [namespaces](https://www.php.net/manual/en/language.namespaces.php). ## Lập trình hướng đối tượng diff --git a/docs/guide-vi/structure-applications.md b/docs/guide-vi/structure-applications.md index a5e1378..8aad3d7 100644 --- a/docs/guide-vi/structure-applications.md +++ b/docs/guide-vi/structure-applications.md @@ -355,7 +355,7 @@ Xem thêm trong phần [Quốc tế hóa](tutorial-i18n.md) để hiểu thêm t Thuộc tính này cung cấp cách khác để thiết lập time zone trong PHP. Qua việc cấu hình thuộc tính này, chủ yếu được gọi qua hàm -[date_default_timezone_set()](https://secure.php.net/manual/en/function.date-default-timezone-set.php). Ví dụ: +[date_default_timezone_set()](https://www.php.net/manual/en/function.date-default-timezone-set.php). Ví dụ: ```php [ diff --git a/docs/guide-vi/structure-models.md b/docs/guide-vi/structure-models.md index 3af1aa4..ab45930 100644 --- a/docs/guide-vi/structure-models.md +++ b/docs/guide-vi/structure-models.md @@ -37,7 +37,7 @@ echo $model->name; ``` Bạn có thể truy cập các thuộc tính như truy cập mảng các phần tử, nhờ sự hỗ trợ từ lớp -[ArrayAccess](https://secure.php.net/manual/en/class.arrayaccess.php) và [ArrayIterator](https://secure.php.net/manual/en/class.arrayiterator.php) +[ArrayAccess](https://www.php.net/manual/en/class.arrayaccess.php) và [ArrayIterator](https://www.php.net/manual/en/class.arrayiterator.php) bởi [[yii\base\Model]]: ```php diff --git a/docs/guide-zh-CN/caching-data.md b/docs/guide-zh-CN/caching-data.md index a2bc1b7..c31f296 100644 --- a/docs/guide-zh-CN/caching-data.md +++ b/docs/guide-zh-CN/caching-data.md @@ -103,7 +103,7 @@ $data = $cache->getOrSet($key, function () use ($user_id) { Yii 支持一系列缓存存储器,概况如下: -* [[yii\caching\ApcCache]]:使用 PHP [APC](https://secure.php.net/manual/en/book.apc.php) 扩展。 +* [[yii\caching\ApcCache]]:使用 PHP [APC](https://www.php.net/manual/en/book.apc.php) 扩展。 这个选项可以认为是集中式应用程序环境中 (例如:单一服务器,没有独立的负载均衡器等)最快的缓存方案。 * [[yii\caching\DbCache]]:使用一个数据库的表存储缓存数据。要使用这个缓存, @@ -120,14 +120,14 @@ Yii 支持一系列缓存存储器,概况如下: `Yii::$app->cache` 可能是 `null`。 * [[yii\caching\FileCache]]:使用标准文件存储缓存数据。 这个特别适用于缓存大块数据,例如一个整页的内容。 -* [[yii\caching\MemCache]]:使用 PHP [memcache](https://secure.php.net/manual/en/book.memcache.php) - 和 [memcached](https://secure.php.net/manual/en/book.memcached.php) 扩展。 +* [[yii\caching\MemCache]]:使用 PHP [memcache](https://www.php.net/manual/en/book.memcache.php) + 和 [memcached](https://www.php.net/manual/en/book.memcached.php) 扩展。 这个选项被看作分布式应用环境中(例如:多台服务器,有负载均衡等) 最快的缓存方案。 * [[yii\redis\Cache]]:实现了一个基于 [Redis](http://redis.io/) 键值对存储器的缓存组件 (需要 redis 2.6.12 及以上版本的支持 )。 * [[yii\caching\WinCache]]:使用 PHP [WinCache](http://iis.net/downloads/microsoft/wincache-extension) - ([另可参考](https://secure.php.net/manual/en/book.wincache.php))扩展. + ([另可参考](https://www.php.net/manual/en/book.wincache.php))扩展. * [[yii\caching\XCache]]:使用 PHP [XCache](http://xcache.lighttpd.net/)扩展。 * [[yii\caching\ZendDataCache]]:使用 [Zend Data Cache](http://files.zend.com/help/Zend-Server-6/zend- server.htm#data_cache_component.htm) diff --git a/docs/guide-zh-CN/caching-http.md b/docs/guide-zh-CN/caching-http.md index 71e81cc..d457e23 100644 --- a/docs/guide-zh-CN/caching-http.md +++ b/docs/guide-zh-CN/caching-http.md @@ -131,7 +131,7 @@ Cache-Control: public, max-age=3600 为了避免此问题,默认情况下 `HttpCache` 禁止自动发送这些头。 想改变这一行为,可以配置 [[yii\filters\HttpCache::sessionCacheLimiter]] 属性。 该属性接受一个字符串值,包括 `public`,`private`,`private_no_expire`,和 `nocache`。 -请参考 PHP 手册中的[缓存限制器](https://secure.php.net/manual/en/function.session-cache-limiter.php) +请参考 PHP 手册中的[缓存限制器](https://www.php.net/manual/en/function.session-cache-limiter.php) 了解这些值的含义。 diff --git a/docs/guide-zh-CN/db-active-record.md b/docs/guide-zh-CN/db-active-record.md index c550a72..6cac681 100644 --- a/docs/guide-zh-CN/db-active-record.md +++ b/docs/guide-zh-CN/db-active-record.md @@ -473,8 +473,8 @@ Active Record 自动维护脏属性列表。 它保存所有属性的旧值, > 其中每个值都表示为一个字符串类型。 > 为了确保正确的类型,比如,整型需要用[过滤验证器](input-validation.md#data-filtering): > `['attributeName', 'filter', 'filter' => 'intval']`。其他 PHP 类型转换函数一样适用,像 -> [intval()](https://secure.php.net/manual/en/function.intval.php), [floatval()](https://secure.php.net/manual/en/function.floatval.php), -> [boolval](https://secure.php.net/manual/en/function.boolval.php),等等 +> [intval()](https://www.php.net/manual/en/function.intval.php), [floatval()](https://www.php.net/manual/en/function.floatval.php), +> [boolval](https://www.php.net/manual/en/function.boolval.php),等等 ### 默认属性值(Default Attribute Values) diff --git a/docs/guide-zh-CN/db-query-builder.md b/docs/guide-zh-CN/db-query-builder.md index 70b3e9d..fb06bfb 100644 --- a/docs/guide-zh-CN/db-query-builder.md +++ b/docs/guide-zh-CN/db-query-builder.md @@ -771,7 +771,7 @@ foreach ($query->each() as $username => $user) { #### MySQL中批量查询的局限性(Limitations of batch query in MySQL) -MySQL 是通过 PDO 驱动库实现批量查询的。默认情况下,MySQL 查询是 [`带缓存的`](https://secure.php.net/manual/en/mysqlinfo.concepts.buffering.php), +MySQL 是通过 PDO 驱动库实现批量查询的。默认情况下,MySQL 查询是 [`带缓存的`](https://www.php.net/manual/en/mysqlinfo.concepts.buffering.php), 这违背了使用游标(cursor)获取数据的目的, 因为它不阻止驱动程序将整个结果集加载到客户端的内存中。 diff --git a/docs/guide-zh-CN/helper-array.md b/docs/guide-zh-CN/helper-array.md index c458e4a..0aafaaa 100644 --- a/docs/guide-zh-CN/helper-array.md +++ b/docs/guide-zh-CN/helper-array.md @@ -1,7 +1,7 @@ 数组助手类(ArrayHelper) ====================== -除了 [PHP 中丰富的数组函数集](https://secure.php.net/manual/zh/book.array.php), +除了 [PHP 中丰富的数组函数集](https://www.php.net/manual/zh/book.array.php), Yii 数组助手类提供了额外的静态方法,让你更高效地处理数组。 @@ -117,7 +117,7 @@ $type = ArrayHelper::remove($array, 'type'); ## 检查键名的存在(Checking Existence of Keys) -`ArrayHelper::keyExists` 工作原理和 [array_key_exists](https://secure.php.net/manual/en/function.array-key-exists.php) 差不多,除了 +`ArrayHelper::keyExists` 工作原理和 [array_key_exists](https://www.php.net/manual/en/function.array-key-exists.php) 差不多,除了 它还可支持大小写不敏感的键名比较,比如: ```php @@ -321,7 +321,7 @@ ArrayHelper::multisort($data, function($item) { 各个键指定不同的顺序。 最后一个参数(译者注:第四个参数)是PHP的排序标识(sort flag),可使用的值和调用 PHP -[sort()](https://secure.php.net/manual/zh/function.sort.php) 函数时传递的值一样。 +[sort()](https://www.php.net/manual/zh/function.sort.php) 函数时传递的值一样。 ## 检测数组类型(Detecting Array Types) @@ -356,7 +356,7 @@ $decoded = ArrayHelper::htmlDecode($data); 您可以使用 [[yii\helpers\ArrayHelper::merge()|ArrayHelper::merge()]] 将两个或多个数组合并成一个递归的数组。 如果每个数组都有一个具有相同字符串键值的元素,则后者将覆盖前者 -(不同于 [array_merge_recursive()](https://secure.php.net/manual/en/function.array-merge-recursive.php))。 +(不同于 [array_merge_recursive()](https://www.php.net/manual/en/function.array-merge-recursive.php))。 如果两个数组都有一个数组类型的元素并且具有相同的键,则将执行递归合并。 对于整数键的元素,来自后一个数组的元素将被附加到前一个数组。 您可以使用 [[yii\helpers\UnsetArrayValue]] 对象来取消前一个数组的值或 diff --git a/docs/guide-zh-CN/helper-html.md b/docs/guide-zh-CN/helper-html.md index 2e4007f..83a5fc8 100644 --- a/docs/guide-zh-CN/helper-html.md +++ b/docs/guide-zh-CN/helper-html.md @@ -2,7 +2,7 @@ Html 帮助类(Html helper) ======================= 任何一个 web 应用程序会生成很多 HTMl 超文本标记。如果超文本标记是静态的, -那么[将 PHP 和 HTML 混合在一个文件里](https://secure.php.net/manual/en/language.basic-syntax.phpmode.php) +那么[将 PHP 和 HTML 混合在一个文件里](https://www.php.net/manual/en/language.basic-syntax.phpmode.php) 这种做法是非常高效的。但是,如果这些超文本标记是动态生成的,那么如果没有额外的辅助工具,这个过程将会变得复杂。 Yii 通过 HTML 帮助类来提供生成超文本标记的方法。这个帮助类包含有一系列的用于处理通用的 HTML 标签和其属性以及内容的静态方法。 @@ -147,8 +147,8 @@ Html::removeCssStyle($options, ['width', 'height']); ### 标签内容的转码和解码(Encoding and Decoding Content) 为了让内容能够正确安全的显示,一些 HTML 特殊字符应该被转码。在 PHP 中, -这个操作由 [htmlspecialchars](https://secure.php.net/manual/en/function.htmlspecialchars.php) 和 -[htmlspecialchars_decode](https://secure.php.net/manual/en/function.htmlspecialchars-decode.php) 完成。 +这个操作由 [htmlspecialchars](https://www.php.net/manual/en/function.htmlspecialchars.php) 和 +[htmlspecialchars_decode](https://www.php.net/manual/en/function.htmlspecialchars-decode.php) 完成。 直接使用这些方法的问题是,你总是需要指定转码所需的额外标志。由于标志一般总是不变的,而内容转码的过程为了避免一些安全问题, 需要和应用的默认过程匹配, Yii 提供了两个简单可用的对 PHP 原生方法的封装: diff --git a/docs/guide-zh-CN/intro-upgrade-from-v1.md b/docs/guide-zh-CN/intro-upgrade-from-v1.md index 42aa2b9..a2c3a9a 100644 --- a/docs/guide-zh-CN/intro-upgrade-from-v1.md +++ b/docs/guide-zh-CN/intro-upgrade-from-v1.md @@ -29,15 +29,15 @@ Yii 2.0 需要 PHP 5.4 或更高版本,该版本相对于 Yii 1.1 所需求的 因此在语言层面上有很多的值得注意的不同之处。 下面是 PHP 层的主要变化汇总: -- [命名空间](https://secure.php.net/manual/zh/language.namespaces.php) -- [匿名函数](https://secure.php.net/manual/zh/functions.anonymous.php) +- [命名空间](https://www.php.net/manual/zh/language.namespaces.php) +- [匿名函数](https://www.php.net/manual/zh/functions.anonymous.php) - 数组短语法 `[...元素...]` 用于取代 `array(...元素...)` - 视图文件中的短格式 echo 标签 `formatter->asTime('2014-10-06 14:41:00 CEST'); // 14:41:00 如果你想要进行更高级的配置, 可以使用 [[yii\i18n\Formatter::numberFormatterOptions]] 和 [[yii\i18n\Formatter::numberFormatterTextOptions]], -[NumberFormatter class](https://secure.php.net/manual/en/class.numberformatter.php) 来进行格式化。 +[NumberFormatter class](https://www.php.net/manual/en/class.numberformatter.php) 来进行格式化。 例如,为了调整小数部分的最大值和最小值,你可以配置 [[yii\i18n\Formatter::numberFormatterOptions]] 如下: ```php @@ -235,7 +235,7 @@ echo Yii::$app->formatter->asDate('2014-01-01'); // output: 1 января 2014 默认配置下,当前 [[yii\i18n\Formatter::locale|locale]] 决定于 [[yii\base\Application::language]]. 你可以覆盖 [[yii\i18n\Formatter::locale]] 属性来满足不同的需要。 -> Note: Yii formatter 依赖 [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) +> Note: Yii formatter 依赖 [PHP intl extension](https://www.php.net/manual/en/book.intl.php) > 来进行本地数据格式化 > 因为不同的 ICU 库可能会导致不同的输出,所以请在你的所有机器上保持 ICU 库的一致性。 > 请参阅 [Setting up your PHP environment for internationalization](tutorial-i18n.md#setup-environment)。 diff --git a/docs/guide-zh-CN/security-passwords.md b/docs/guide-zh-CN/security-passwords.md index da126e5..d13e024 100644 --- a/docs/guide-zh-CN/security-passwords.md +++ b/docs/guide-zh-CN/security-passwords.md @@ -7,7 +7,7 @@ 为了即使在最糟糕的情况下(你的应用程序被破解了)也能给用户密码提供增强的安全性, 你需要使用一个能够对抗暴力破解攻击的哈希算法。目前最好的选择是 `bcrypt`。在 PHP 中, -你可以通过 [crypt 函数](https://secure.php.net/manual/en/function.crypt.php) 生成 `bcrypt` 哈希。 +你可以通过 [crypt 函数](https://www.php.net/manual/en/function.crypt.php) 生成 `bcrypt` 哈希。 Yii 提供了两个帮助函数以让使用 `crypt` 来进行安全的哈希密码生成和验证更加容易。 当一个用户为第一次使用,提供了一个密码时(比如:注册时),密码就需要被哈希化。 diff --git a/docs/guide-zh-CN/start-installation.md b/docs/guide-zh-CN/start-installation.md index c9a1b9c..c505cfd 100644 --- a/docs/guide-zh-CN/start-installation.md +++ b/docs/guide-zh-CN/start-installation.md @@ -139,7 +139,7 @@ Yii依靠 [Bower](http://bower.io/) 和/或 [NPM](https://www.npmjs.com/) 软件 ------------ 当安装完成之后, -或配置你的Web服务器(看下面的文章)或使用[内置Web Server](https://secure.php.net/manual/en/features.commandline.webserver.php), +或配置你的Web服务器(看下面的文章)或使用[内置Web Server](https://www.php.net/manual/en/features.commandline.webserver.php), 当在项目 `web` 目录下可以通过下面的命令: ```bash @@ -173,7 +173,7 @@ http://localhost:8080/ ``` 你需要配置好 PHP 安装环境,使其符合 Yii 的最小需求。主要是需要 PHP 5.4 或 以上版本。 -如果应用需要用到数据库,那还要安装 [PDO PHP 扩展](https://secure.php.net/manual/zh/pdo.installation.php) +如果应用需要用到数据库,那还要安装 [PDO PHP 扩展](https://www.php.net/manual/zh/pdo.installation.php) 和相应的数据库驱动(例如访问 MySQL 数据库所需的 `pdo_mysql`)。 @@ -234,7 +234,7 @@ DocumentRoot "path/to/basic/web" ### 推荐使用的 Nginx 配置 -为了使用 [Nginx](http://wiki.nginx.org/),你应该已经将 PHP 安装为 [FPM SAPI](https://secure.php.net/install.fpm) 了。 +为了使用 [Nginx](http://wiki.nginx.org/),你应该已经将 PHP 安装为 [FPM SAPI](https://www.php.net/install.fpm) 了。 你可以使用如下 Nginx 配置,将 `path/to/basic/web` 替换为实际的 `basic/web` 目录, `mysite.local` 替换为实际的主机名以提供服务。 diff --git a/docs/guide-zh-CN/start-prerequisites.md b/docs/guide-zh-CN/start-prerequisites.md index e1a35c8..9ed6a5f 100644 --- a/docs/guide-zh-CN/start-prerequisites.md +++ b/docs/guide-zh-CN/start-prerequisites.md @@ -4,8 +4,8 @@ Yii 的学习曲线并不像其他 PHP 框架那样陡峭,但仍然需要一 ## PHP -Yii 是一个 PHP 框架,因此请确保您 [阅读并理解语言参考](https://secure.php.net/manual/zh/langref.php)。 -用 Yii 进行开发时,您将以面向对象的方式编写代码,因此请确保您熟悉[类与对象](https://secure.php.net/manual/en/language.oop5.basic.php)以及[命名空间](https://www.php.net/manual/en/language.namespaces.php)。 +Yii 是一个 PHP 框架,因此请确保您 [阅读并理解语言参考](https://www.php.net/manual/zh/langref.php)。 +用 Yii 进行开发时,您将以面向对象的方式编写代码,因此请确保您熟悉[类与对象](https://www.php.net/manual/en/language.oop5.basic.php)以及[命名空间](https://www.php.net/manual/en/language.namespaces.php)。 ## 面向对象编程(Object oriented programming) diff --git a/docs/guide-zh-CN/structure-applications.md b/docs/guide-zh-CN/structure-applications.md index 2f56ec2..3fa407b 100644 --- a/docs/guide-zh-CN/structure-applications.md +++ b/docs/guide-zh-CN/structure-applications.md @@ -356,7 +356,7 @@ $width = \Yii::$app->params['thumbnail.size'][0]; #### [[yii\base\Application::timeZone|timeZone]] 该属性提供一种方式修改 PHP 运行环境中的默认时区,配置该属性本质上就是调用 PHP 函数 -[date_default_timezone_set()](https://secure.php.net/manual/en/function.date-default-timezone-set.php), +[date_default_timezone_set()](https://www.php.net/manual/en/function.date-default-timezone-set.php), 例如: ```php diff --git a/docs/guide-zh-CN/structure-models.md b/docs/guide-zh-CN/structure-models.md index bdded5e..1309d97 100644 --- a/docs/guide-zh-CN/structure-models.md +++ b/docs/guide-zh-CN/structure-models.md @@ -37,8 +37,8 @@ echo $model->name; ``` 也可像访问数组单元项一样访问属性,这要感谢[[yii\base\Model]]支持 -[ArrayAccess 数组访问](https://secure.php.net/manual/en/class.arrayaccess.php) -和 [ArrayIterator 数组迭代器](https://secure.php.net/manual/en/class.arrayiterator.php): +[ArrayAccess 数组访问](https://www.php.net/manual/en/class.arrayaccess.php) +和 [ArrayIterator 数组迭代器](https://www.php.net/manual/en/class.arrayiterator.php): ```php $model = new \app\models\ContactForm; diff --git a/docs/guide-zh-CN/structure-widgets.md b/docs/guide-zh-CN/structure-widgets.md index 606b041..79cc680 100644 --- a/docs/guide-zh-CN/structure-widgets.md +++ b/docs/guide-zh-CN/structure-widgets.md @@ -67,7 +67,7 @@ use yii\helpers\Html; 注意和调用 [[yii\base\Widget::widget()]] 返回渲染结果不同, 调用 [[yii\base\Widget::begin()]] 方法返回一个可组建小部件内容的小部件实例。 -> Note: 当调用 [[yii\base\Widget::end()]] 的时候,一些小部件将使用 [输出缓冲](https://secure.php.net/manual/en/book.outcontrol.php) +> Note: 当调用 [[yii\base\Widget::end()]] 的时候,一些小部件将使用 [输出缓冲](https://www.php.net/manual/en/book.outcontrol.php) > 来调整封闭的内容。因此,当调用 [[yii\base\Widget::begin()]] 和 > [[yii\base\Widget::end()]] 时,最好在同一个视图文件里。 > 不遵循这个规则可能会导致意外的输出。 diff --git a/docs/guide-zh-CN/tutorial-core-validators.md b/docs/guide-zh-CN/tutorial-core-validators.md index 294d15e..3fd8af9 100644 --- a/docs/guide-zh-CN/tutorial-core-validators.md +++ b/docs/guide-zh-CN/tutorial-core-validators.md @@ -141,7 +141,7 @@ public function rules() - `format`:被验证值的日期/时间格式。 这里的值可以是 [ICU manual](http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax) 中定义的日期时间格式。 另外还可以设置以 `php:` 开头的字符串,用来表示PHP可以识别的日期时间格式。 - `Datetime` 日期时间类。请参考 获取更多支持的格式。 + `Datetime` 日期时间类。请参考 获取更多支持的格式。 如果没有设置,默认值将使用 `Yii::$app->formatter->dateFormat` 中的值。 请参考 [[yii\validators\DateValidator::$format|API 文档]] 以获取更详细的说明。 @@ -389,8 +389,8 @@ function foo($model, $attribute) { > Tip: 如果你只是想要用 trim 处理下输入值,你可以直接用 [trim](#trim) 验证器的。 > Tip: 有许多的PHP方法结构和 `filter` 需要的结构一致。 -> 比如使用类型转换方法 ([intval](https://secure.php.net/manual/en/function.intval.php), -> [boolval](https://secure.php.net/manual/en/function.boolval.php), ...) 来确保属性为指定的类型, +> 比如使用类型转换方法 ([intval](https://www.php.net/manual/en/function.intval.php), +> [boolval](https://www.php.net/manual/en/function.boolval.php), ...) 来确保属性为指定的类型, > 你可以简单的设置这些方法名而不是重新定义一个匿名函数: > > ```php diff --git a/docs/guide-zh-CN/tutorial-i18n.md b/docs/guide-zh-CN/tutorial-i18n.md index ec17c21..4d855ad 100644 --- a/docs/guide-zh-CN/tutorial-i18n.md +++ b/docs/guide-zh-CN/tutorial-i18n.md @@ -231,7 +231,7 @@ $price = 100; echo \Yii::t('app', 'Price: {0, number, currency}', $price); ``` -> Note: 参数的格式化需要安装 [intl PHP 扩展](https://secure.php.net/manual/en/intro.intl.php)。 +> Note: 参数的格式化需要安装 [intl PHP 扩展](https://www.php.net/manual/en/intro.intl.php)。 可以使用缩写的形式或完整的形式来格式化占位符: @@ -738,12 +738,12 @@ class TranslationEventHandler ## 设置 PHP 环境(Setting Up PHP Environment) -Yii 使用 [PHP intl 扩展](https://secure.php.net/manual/en/book.intl.php) 来提供大多数 I18N 的功能, +Yii 使用 [PHP intl 扩展](https://www.php.net/manual/en/book.intl.php) 来提供大多数 I18N 的功能, 如日期和数字格式的 [[yii\i18n\Formatter]] 类和消息格式的 [[yii\i18n\MessageFormatter]] 类。 当 `intl` 扩展没有安装时,两者会提供一个回调机制。然而,该回调机制只适用于目标语言是英语的情况下。 因此,当 I18N 对你来说必不可少时,强烈建议你安装 `intl`。 -[PHP intl 扩展](https://secure.php.net/manual/en/book.intl.php) 是基于对于所有不同的语言环境 +[PHP intl 扩展](https://www.php.net/manual/en/book.intl.php) 是基于对于所有不同的语言环境 提供格式化规则的 [ICU库](http://site.icu-project.org/)。 不同版本的 ICU 中可能会产生不同日期和数值格式的结果。 为了确保你的网站在所有环境产生相同的结果, diff --git a/docs/guide-zh-CN/tutorial-performance-tuning.md b/docs/guide-zh-CN/tutorial-performance-tuning.md index 76849de..8415323 100644 --- a/docs/guide-zh-CN/tutorial-performance-tuning.md +++ b/docs/guide-zh-CN/tutorial-performance-tuning.md @@ -11,8 +11,8 @@ 一个好的 PHP 环境是非常重要的。为了得到最大的性能, - 使用最新稳定版本的 PHP。 PHP 的主要版本可能带来显著的性能提升。 -- 启用字节码缓存 [Opcache](https://secure.php.net/opcache)(PHP 5.5或更高版本) - 或 [APC](https://secure.php.net/apc) +- 启用字节码缓存 [Opcache](https://www.php.net/opcache)(PHP 5.5或更高版本) + 或 [APC](https://www.php.net/apc) (PHP 5.4或更早版本)。字节码缓存省去了每次解析和加载 PHP 脚本所带来的开销。 - [Tune `realpath()` cache](https://github.com/samdark/realpath_cache_tuner). @@ -217,7 +217,7 @@ composer dumpautoload -o - [Yii debug toolbar and debugger](https://github.com/yiisoft/yii2-debug/blob/master/docs/guide/README.md) - [Blackfire](https://blackfire.io/) -- [XHProf](https://secure.php.net/manual/en/book.xhprof.php) +- [XHProf](https://www.php.net/manual/en/book.xhprof.php) - [XDebug profiler](http://xdebug.org/docs/profiler) ## 准备扩展应用程序 diff --git a/docs/guide/caching-data.md b/docs/guide/caching-data.md index 61e208f..f8fbd63 100644 --- a/docs/guide/caching-data.md +++ b/docs/guide/caching-data.md @@ -103,7 +103,7 @@ For example, you can modify the above configuration to use [[yii\caching\ApcCach Yii supports a wide range of cache storage. The following is a summary: -* [[yii\caching\ApcCache]]: uses PHP [APC](https://secure.php.net/manual/en/book.apc.php) extension. This option can be +* [[yii\caching\ApcCache]]: uses PHP [APC](https://www.php.net/manual/en/book.apc.php) extension. This option can be considered as the fastest one when dealing with cache for a centralized thick application (e.g. one server, no dedicated load balancers, etc.). * [[yii\caching\DbCache]]: uses a database table to store cached data. To use this cache, you must @@ -120,14 +120,14 @@ Yii supports a wide range of cache storage. The following is a summary: `Yii::$app->cache` might be `null`. * [[yii\caching\FileCache]]: uses standard files to store cached data. This is particularly suitable to cache large chunk of data, such as page content. -* [[yii\caching\MemCache]]: uses PHP [memcache](https://secure.php.net/manual/en/book.memcache.php) - and [memcached](https://secure.php.net/manual/en/book.memcached.php) extensions. This option can be considered as +* [[yii\caching\MemCache]]: uses PHP [memcache](https://www.php.net/manual/en/book.memcache.php) + and [memcached](https://www.php.net/manual/en/book.memcached.php) extensions. This option can be considered as the fastest one when dealing with cache in a distributed applications (e.g. with several servers, load balancers, etc.) * [[yii\redis\Cache]]: implements a cache component based on [Redis](http://redis.io/) key-value store (redis version 2.6.12 or higher is required). * [[yii\caching\WinCache]]: uses PHP [WinCache](http://iis.net/downloads/microsoft/wincache-extension) - ([see also](https://secure.php.net/manual/en/book.wincache.php)) extension. + ([see also](https://www.php.net/manual/en/book.wincache.php)) extension. * [[yii\caching\XCache]] _(deprecated)_: uses PHP [XCache](http://xcache.lighttpd.net/) extension. * [[yii\caching\ZendDataCache]] _(deprecated)_: uses [Zend Data Cache](http://files.zend.com/help/Zend-Server-6/zend-server.htm#data_cache_component.htm) diff --git a/docs/guide/caching-http.md b/docs/guide/caching-http.md index 6cca682..31964c1 100644 --- a/docs/guide/caching-http.md +++ b/docs/guide/caching-http.md @@ -131,7 +131,7 @@ that you want from `HttpCache`. To prevent this problem, by default `HttpCache` these headers automatically. If you want to change this behavior, you should configure the [[yii\filters\HttpCache::sessionCacheLimiter]] property. The property can take a string value, including `public`, `private`, `private_no_expire`, and `nocache`. Please refer to the PHP manual about -[session_cache_limiter()](https://secure.php.net/manual/en/function.session-cache-limiter.php) +[session_cache_limiter()](https://www.php.net/manual/en/function.session-cache-limiter.php) for explanations about these values. diff --git a/docs/guide/db-active-record.md b/docs/guide/db-active-record.md index bdb8c5f..8dfa6ec 100644 --- a/docs/guide/db-active-record.md +++ b/docs/guide/db-active-record.md @@ -473,8 +473,8 @@ If you are interested in the attribute values prior to their most recent modific > HTML forms where every value is represented as a string. > To ensure the correct type for e.g. integer values you may apply a [validation filter](input-validation.md#data-filtering): > `['attributeName', 'filter', 'filter' => 'intval']`. This works with all the typecasting functions of PHP like -> [intval()](https://secure.php.net/manual/en/function.intval.php), [floatval()](https://secure.php.net/manual/en/function.floatval.php), -> [boolval](https://secure.php.net/manual/en/function.boolval.php), etc... +> [intval()](https://www.php.net/manual/en/function.intval.php), [floatval()](https://www.php.net/manual/en/function.floatval.php), +> [boolval](https://www.php.net/manual/en/function.boolval.php), etc... ### Default Attribute Values diff --git a/docs/guide/db-query-builder.md b/docs/guide/db-query-builder.md index 1d60afd..5d9b6e0 100644 --- a/docs/guide/db-query-builder.md +++ b/docs/guide/db-query-builder.md @@ -798,7 +798,7 @@ foreach ($query->each() as $username => $user) { #### Limitations of batch query in MySQL MySQL implementation of batch queries relies on the PDO driver library. By default, MySQL queries are -[`buffered`](https://secure.php.net/manual/en/mysqlinfo.concepts.buffering.php). This defeats the purpose +[`buffered`](https://www.php.net/manual/en/mysqlinfo.concepts.buffering.php). This defeats the purpose of using the cursor to get the data, because it doesn't prevent the whole result set from being loaded into the client's memory by the driver. diff --git a/docs/guide/helper-array.md b/docs/guide/helper-array.md index 698b8e7..19c3c03 100644 --- a/docs/guide/helper-array.md +++ b/docs/guide/helper-array.md @@ -1,7 +1,7 @@ ArrayHelper =========== -Additionally to the [rich set of PHP array functions](https://secure.php.net/manual/en/book.array.php), the Yii array helper provides +Additionally to the [rich set of PHP array functions](https://www.php.net/manual/en/book.array.php), the Yii array helper provides extra static methods allowing you to deal with arrays more efficiently. @@ -117,7 +117,7 @@ After executing the code `$array` will contain `['options' => [1, 2]]` and `$typ ## Checking Existence of Keys -`ArrayHelper::keyExists` works the same way as [array_key_exists](https://secure.php.net/manual/en/function.array-key-exists.php) +`ArrayHelper::keyExists` works the same way as [array_key_exists](https://www.php.net/manual/en/function.array-key-exists.php) except that it also supports case-insensitive key comparison. For example, ```php @@ -322,7 +322,7 @@ Third argument is direction. In case of sorting by a single key it could be eith sort direction. Last argument is PHP sort flag that could take the same values as the ones passed to -PHP [sort()](https://secure.php.net/manual/en/function.sort.php). +PHP [sort()](https://www.php.net/manual/en/function.sort.php). ## Detecting Array Types @@ -357,7 +357,7 @@ Encoding will use application charset and could be changed via third argument. You can use [[yii\helpers\ArrayHelper::merge()|ArrayHelper::merge()]] to merge two or more arrays into one recursively. If each array has an element with the same string key value, the latter will overwrite the former -(different from [array_merge_recursive()](https://secure.php.net/manual/en/function.array-merge-recursive.php)). +(different from [array_merge_recursive()](https://www.php.net/manual/en/function.array-merge-recursive.php)). Recursive merging will be conducted if both arrays have an element of array type and are having the same key. For integer-keyed elements, the elements from the latter array will be appended to the former array. You can use [[yii\helpers\UnsetArrayValue]] object to unset value from previous array or @@ -472,7 +472,7 @@ While PHP offers `in_array()`, this does not support subsets or `\Traversable` o To aid these kinds of tests, [[yii\helpers\ArrayHelper]] provides [[yii\helpers\ArrayHelper::isIn()|isIn()]] and [[yii\helpers\ArrayHelper::isSubset()|isSubset()]] with the same signature as -[in_array()](https://secure.php.net/manual/en/function.in-array.php). +[in_array()](https://www.php.net/manual/en/function.in-array.php). ```php // true diff --git a/docs/guide/helper-html.md b/docs/guide/helper-html.md index 1c411e7..3a0b28e 100644 --- a/docs/guide/helper-html.md +++ b/docs/guide/helper-html.md @@ -2,7 +2,7 @@ Html helper =========== Every web application generates lots of HTML markup. If the markup is static, it can be done efficiently by -[mixing PHP and HTML in a single file](https://secure.php.net/manual/en/language.basic-syntax.phpmode.php), but when it is +[mixing PHP and HTML in a single file](https://www.php.net/manual/en/language.basic-syntax.phpmode.php), but when it is generated dynamically it starts to get tricky to handle it without extra help. Yii provides such help in the form of an Html helper, which provides a set of static methods for handling commonly used HTML tags, their options, and their content. @@ -147,8 +147,8 @@ method accepts an array of properties to remove. If it's a single property, it c ### Encoding and Decoding Content In order for content to be displayed properly and securely in HTML, special characters in the content should be encoded. -In PHP this is done with [htmlspecialchars](https://secure.php.net/manual/en/function.htmlspecialchars.php) and -[htmlspecialchars_decode](https://secure.php.net/manual/en/function.htmlspecialchars-decode.php). The issue with using +In PHP this is done with [htmlspecialchars](https://www.php.net/manual/en/function.htmlspecialchars.php) and +[htmlspecialchars_decode](https://www.php.net/manual/en/function.htmlspecialchars-decode.php). The issue with using these methods directly is that you have to specify encoding and extra flags all the time. Since these flags are the same all the time and the encoding should match the one of the application in order to prevent security issues, Yii provides two compact and simple-to-use methods: diff --git a/docs/guide/helper-json.md b/docs/guide/helper-json.md index 1f767d4..60d99ac 100644 --- a/docs/guide/helper-json.md +++ b/docs/guide/helper-json.md @@ -5,7 +5,7 @@ Json helper provides a set of static methods for encoding and decoding JSON. It handles encoding errors and the `[[yii\helpers\Json::encode()]]` method will not encode a JavaScript expression that is represented in terms of a `[[yii\web\JsExpression]]` object. By default, encoding is done with the `JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE` options. -Please see [PHP:json_encode](https://secure.php.net/manual/en/function.json-encode.php) for more information. +Please see [PHP:json_encode](https://www.php.net/manual/en/function.json-encode.php) for more information. ## Pretty Print diff --git a/docs/guide/intro-upgrade-from-v1.md b/docs/guide/intro-upgrade-from-v1.md index 0a02623..aecfd9f 100644 --- a/docs/guide/intro-upgrade-from-v1.md +++ b/docs/guide/intro-upgrade-from-v1.md @@ -30,14 +30,14 @@ As a result, there are many differences on the language level that you should pa Below is a summary of the major changes regarding PHP: - [Namespaces](https://www.php.net/manual/en/language.namespaces.php). -- [Anonymous functions](https://secure.php.net/manual/en/functions.anonymous.php). +- [Anonymous functions](https://www.php.net/manual/en/functions.anonymous.php). - Short array syntax `[...elements...]` is used instead of `array(...elements...)`. - Short echo tags `formatter->asDate('2014-01-01'); // output: 1 января 2014 By default, the currently active [[yii\i18n\Formatter::locale|locale]] is determined by the value of [[yii\base\Application::language]]. You may override it by setting the [[yii\i18n\Formatter::locale]] property explicitly. -> Note: The Yii formatter relies on the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) to support +> Note: The Yii formatter relies on the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) to support > localized data formatting. Because different versions of the ICU library compiled with PHP may cause different > formatting results, it is recommended that you use the same ICU version for all your environments. For more details, > please refer to [Setting up your PHP environment for internationalization](tutorial-i18n.md#setup-environment). diff --git a/docs/guide/security-passwords.md b/docs/guide/security-passwords.md index 5edce28..327ccce 100644 --- a/docs/guide/security-passwords.md +++ b/docs/guide/security-passwords.md @@ -7,7 +7,7 @@ but modern hardware makes it possible to crack such hashes and even stronger one In order to provide increased security for user passwords, even in the worst case scenario (your application is breached), you need to use a hashing algorithm that is resilient against brute force attacks. The best current choice is `bcrypt`. -In PHP, you can create a `bcrypt` hash using the [crypt function](https://secure.php.net/manual/en/function.crypt.php). Yii provides +In PHP, you can create a `bcrypt` hash using the [crypt function](https://www.php.net/manual/en/function.crypt.php). Yii provides two helper functions which make using `crypt` to securely generate and verify hashes easier. When a user provides a password for the first time (e.g., upon registration), the password needs to be hashed: diff --git a/docs/guide/start-installation.md b/docs/guide/start-installation.md index 27e3ba3..7a1c43d 100644 --- a/docs/guide/start-installation.md +++ b/docs/guide/start-installation.md @@ -139,7 +139,7 @@ Verifying the Installation -------------------------- After installation is done, either configure your web server (see next section) or use the -[built-in PHP web server](https://secure.php.net/manual/en/features.commandline.webserver.php) by running the following +[built-in PHP web server](https://www.php.net/manual/en/features.commandline.webserver.php) by running the following console command while in the project root directory: ```bash @@ -173,7 +173,7 @@ Yii's requirements. You can check if the minimum requirements are met using one ``` You should configure your PHP installation so that it meets the minimum requirements of Yii. Most importantly, you -should have PHP 5.4 or above. Ideally latest PHP 7. You should also install the [PDO PHP Extension](https://secure.php.net/manual/en/pdo.installation.php) +should have PHP 5.4 or above. Ideally latest PHP 7. You should also install the [PDO PHP Extension](https://www.php.net/manual/en/pdo.installation.php) and a corresponding database driver (such as `pdo_mysql` for MySQL databases), if your application needs a database. @@ -236,7 +236,7 @@ DocumentRoot "path/to/basic/web" ### Recommended Nginx Configuration -To use [Nginx](http://wiki.nginx.org/), you should install PHP as an [FPM SAPI](https://secure.php.net/install.fpm). +To use [Nginx](http://wiki.nginx.org/), you should install PHP as an [FPM SAPI](https://www.php.net/install.fpm). You may use the following Nginx configuration, replacing `path/to/basic/web` with the actual path for `basic/web` and `mysite.test` with the actual hostname to serve. diff --git a/docs/guide/start-prerequisites.md b/docs/guide/start-prerequisites.md index 1540aa6..4043b57 100644 --- a/docs/guide/start-prerequisites.md +++ b/docs/guide/start-prerequisites.md @@ -4,8 +4,8 @@ The Yii learning curve is not as steep as other PHP frameworks but still there a ## PHP -Yii is a PHP framework so make sure you [read and understand language reference](https://secure.php.net/manual/en/langref.php). -When developing with Yii you will be writing code in an object oriented fashion, so make sure you are familiar with [Classes and Objects](https://secure.php.net/manual/en/language.oop5.basic.php) as well as [namespaces](https://www.php.net/manual/en/language.namespaces.php). +Yii is a PHP framework so make sure you [read and understand language reference](https://www.php.net/manual/en/langref.php). +When developing with Yii you will be writing code in an object oriented fashion, so make sure you are familiar with [Classes and Objects](https://www.php.net/manual/en/language.oop5.basic.php) as well as [namespaces](https://www.php.net/manual/en/language.namespaces.php). ## Object oriented programming diff --git a/docs/guide/structure-applications.md b/docs/guide/structure-applications.md index b057d6c..748b667 100644 --- a/docs/guide/structure-applications.md +++ b/docs/guide/structure-applications.md @@ -357,7 +357,7 @@ More details about this property can be found in the [Internationalization](tuto This property is provided as an alternative way of setting the default time zone of the PHP runtime. By configuring this property, you are essentially calling the PHP function -[date_default_timezone_set()](https://secure.php.net/manual/en/function.date-default-timezone-set.php). For example: +[date_default_timezone_set()](https://www.php.net/manual/en/function.date-default-timezone-set.php). For example: ```php [ diff --git a/docs/guide/structure-models.md b/docs/guide/structure-models.md index 1cfc9bb..4fb65e1 100644 --- a/docs/guide/structure-models.md +++ b/docs/guide/structure-models.md @@ -37,7 +37,7 @@ echo $model->name; ``` You can also access attributes like accessing array elements, thanks to the support for -[ArrayAccess](https://secure.php.net/manual/en/class.arrayaccess.php) and [Traversable](https://secure.php.net/manual/en/class.traversable.php) +[ArrayAccess](https://www.php.net/manual/en/class.arrayaccess.php) and [Traversable](https://www.php.net/manual/en/class.traversable.php) by [[yii\base\Model]]: ```php diff --git a/docs/guide/structure-widgets.md b/docs/guide/structure-widgets.md index e0791d6..65c0bb8 100644 --- a/docs/guide/structure-widgets.md +++ b/docs/guide/structure-widgets.md @@ -66,7 +66,7 @@ use yii\helpers\Html; Note that unlike [[yii\base\Widget::widget()]] which returns the rendering result of a widget, the method [[yii\base\Widget::begin()]] returns an instance of the widget which you can use to build the widget content. -> Note: Some widgets will use [output buffering](https://secure.php.net/manual/en/book.outcontrol.php) to adjust the enclosed +> Note: Some widgets will use [output buffering](https://www.php.net/manual/en/book.outcontrol.php) to adjust the enclosed > content when [[yii\base\Widget::end()]] is called. For this reason calling [[yii\base\Widget::begin()]] and > [[yii\base\Widget::end()]] is expected to happen in the same view file. > Not following this rule may result in unexpected output. diff --git a/docs/guide/tutorial-core-validators.md b/docs/guide/tutorial-core-validators.md index cce4191..6fa31c4 100644 --- a/docs/guide/tutorial-core-validators.md +++ b/docs/guide/tutorial-core-validators.md @@ -141,7 +141,7 @@ specified via [[yii\validators\DateValidator::timestampAttribute|timestampAttrib - `format`: the date/time format that the value being validated should be in. This can be a date time pattern as described in the [ICU manual](http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax). Alternatively this can be a string prefixed with `php:` representing a format that can be recognized by the PHP - `Datetime` class. Please refer to on supported formats. + `Datetime` class. Please refer to on supported formats. If this is not set, it will take the value of `Yii::$app->formatter->dateFormat`. See the [[yii\validators\DateValidator::$format|API documentation]] for more details. @@ -424,8 +424,8 @@ back to the attribute being validated. > Tip: If you want to trim input values, you may directly use the [trim](#trim) validator. > Tip: There are many PHP functions that have the signature expected for the `filter` callback. -> For example to apply type casting (using e.g. [intval](https://secure.php.net/manual/en/function.intval.php), -> [boolval](https://secure.php.net/manual/en/function.boolval.php), ...) to ensure a specific type for an attribute, +> For example to apply type casting (using e.g. [intval](https://www.php.net/manual/en/function.intval.php), +> [boolval](https://www.php.net/manual/en/function.boolval.php), ...) to ensure a specific type for an attribute, > you can simply specify the function names of the filter without the need to wrap them in a closure: > > ```php diff --git a/docs/guide/tutorial-i18n.md b/docs/guide/tutorial-i18n.md index 75cbb7e..2123f57 100644 --- a/docs/guide/tutorial-i18n.md +++ b/docs/guide/tutorial-i18n.md @@ -231,7 +231,7 @@ $price = 100; echo \Yii::t('app', 'Price: {0,number,currency}', $price); ``` -> Note: Parameter formatting requires the installation of the [intl PHP extension](https://secure.php.net/manual/en/intro.intl.php). +> Note: Parameter formatting requires the installation of the [intl PHP extension](https://www.php.net/manual/en/intro.intl.php). You can use either the short form or the full form to specify a placeholder with formatting: @@ -738,12 +738,12 @@ See the [Data Formatting](output-formatting.md) section for details. ## Setting Up PHP Environment -Yii uses the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) to provide most of its I18N features, +Yii uses the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) to provide most of its I18N features, such as the date and number formatting of the [[yii\i18n\Formatter]] class and the message formatting using [[yii\i18n\MessageFormatter]]. Both classes provide a fallback mechanism when the `intl` extension is not installed. However, the fallback implementation only works well for English target language. So it is highly recommended that you install `intl` when I18N is needed. -The [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is based on the [ICU library](http://site.icu-project.org/) which +The [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is based on the [ICU library](http://site.icu-project.org/) which provides the knowledge and formatting rules for all different locales. Different versions of ICU may produce different formatting result of date and number values. To ensure your website produces the same results across all environments, it is recommended that you install the same version of the `intl` extension (and thus the same version of ICU) diff --git a/docs/guide/tutorial-performance-tuning.md b/docs/guide/tutorial-performance-tuning.md index d9edb3d..9578948 100644 --- a/docs/guide/tutorial-performance-tuning.md +++ b/docs/guide/tutorial-performance-tuning.md @@ -11,7 +11,7 @@ factors and explain how you can improve your application performance by adjustin A well configured PHP environment is very important. In order to get maximum performance, - Use the latest stable PHP version. Major releases of PHP may bring significant performance improvements. -- Enable bytecode caching with [Opcache](https://secure.php.net/opcache) (PHP 5.5 or later) or [APC](https://secure.php.net/apc) +- Enable bytecode caching with [Opcache](https://www.php.net/opcache) (PHP 5.5 or later) or [APC](https://www.php.net/apc) (PHP 5.4). Bytecode caching avoids the time spent in parsing and including PHP scripts for every incoming request. - [Tune `realpath()` cache](https://github.com/samdark/realpath_cache_tuner). @@ -217,7 +217,7 @@ The following profiling tools may be useful: - [Yii debug toolbar and debugger](https://github.com/yiisoft/yii2-debug/blob/master/docs/guide/README.md) - [Blackfire](https://blackfire.io/) -- [XHProf](https://secure.php.net/manual/en/book.xhprof.php) +- [XHProf](https://www.php.net/manual/en/book.xhprof.php) - [XDebug profiler](http://xdebug.org/docs/profiler) ## Prepare application for scaling diff --git a/framework/BaseYii.php b/framework/BaseYii.php index 3230dc3..002b0f6 100644 --- a/framework/BaseYii.php +++ b/framework/BaseYii.php @@ -522,7 +522,7 @@ class BaseYii * echo \Yii::t('app', 'Hello, {username}!', ['username' => $username]); * ``` * - * Further formatting of message parameters is supported using the [PHP intl extensions](https://secure.php.net/manual/en/intro.intl.php) + * Further formatting of message parameters is supported using the [PHP intl extensions](https://www.php.net/manual/en/intro.intl.php) * message formatter. See [[\yii\i18n\I18N::translate()]] for more details. * * @param string $category the message category. diff --git a/framework/UPGRADE.md b/framework/UPGRADE.md index 1a6a94b..8a9a20a 100644 --- a/framework/UPGRADE.md +++ b/framework/UPGRADE.md @@ -850,7 +850,7 @@ Upgrade from Yii 2.0 Beta You can add it with `ALTER TABLE log ADD COLUMN prefix TEXT AFTER log_time;`. * The `fileinfo` PHP extension is now required by Yii. If you use `yii\helpers\FileHelper::getMimeType()`, make sure - you have enabled this extension. This extension is [builtin](https://secure.php.net/manual/en/fileinfo.installation.php) in php above `5.3`. + you have enabled this extension. This extension is [builtin](https://www.php.net/manual/en/fileinfo.installation.php) in php above `5.3`. * Please update your main layout file by adding this line in the `` section: ``. This change is needed because `yii\web\View` no longer automatically generates CSRF meta tags due to issue #3358. diff --git a/framework/base/Application.php b/framework/base/Application.php index 94f4be1..61268f5 100644 --- a/framework/base/Application.php +++ b/framework/base/Application.php @@ -477,7 +477,7 @@ abstract class Application extends Module * If time zone is not configured in php.ini or application config, * it will be set to UTC by default. * @return string the time zone used by this application. - * @see https://secure.php.net/manual/en/function.date-default-timezone-get.php + * @see https://www.php.net/manual/en/function.date-default-timezone-get.php */ public function getTimeZone() { @@ -487,9 +487,9 @@ abstract class Application extends Module /** * Sets the time zone used by this application. * This is a simple wrapper of PHP function date_default_timezone_set(). - * Refer to the [php manual](https://secure.php.net/manual/en/timezones.php) for available timezones. + * Refer to the [php manual](https://www.php.net/manual/en/timezones.php) for available timezones. * @param string $value the time zone used by this application. - * @see https://secure.php.net/manual/en/function.date-default-timezone-set.php + * @see https://www.php.net/manual/en/function.date-default-timezone-set.php */ public function setTimeZone($value) { diff --git a/framework/base/BaseObject.php b/framework/base/BaseObject.php index acb50ad..e5d4e10 100644 --- a/framework/base/BaseObject.php +++ b/framework/base/BaseObject.php @@ -173,7 +173,7 @@ class BaseObject implements Configurable * Note that if the property is not defined, false will be returned. * @param string $name the property name or the event name * @return bool whether the named property is set (not null). - * @see https://secure.php.net/manual/en/function.isset.php + * @see https://www.php.net/manual/en/function.isset.php */ public function __isset($name) { @@ -195,7 +195,7 @@ class BaseObject implements Configurable * If the property is read-only, it will throw an exception. * @param string $name the property name * @throws InvalidCallException if the property is read only. - * @see https://secure.php.net/manual/en/function.unset.php + * @see https://www.php.net/manual/en/function.unset.php */ public function __unset($name) { diff --git a/framework/base/Component.php b/framework/base/Component.php index 47e872b..32f714c 100644 --- a/framework/base/Component.php +++ b/framework/base/Component.php @@ -223,7 +223,7 @@ class Component extends BaseObject * will be implicitly called when executing `isset($component->property)`. * @param string $name the property name or the event name * @return bool whether the named property is set - * @see https://secure.php.net/manual/en/function.isset.php + * @see https://www.php.net/manual/en/function.isset.php */ public function __isset($name) { @@ -255,7 +255,7 @@ class Component extends BaseObject * will be implicitly called when executing `unset($component->property)`. * @param string $name the property name * @throws InvalidCallException if the property is read only. - * @see https://secure.php.net/manual/en/function.unset.php + * @see https://www.php.net/manual/en/function.unset.php */ public function __unset($name) { diff --git a/framework/base/ErrorException.php b/framework/base/ErrorException.php index 03b662f..657b8e3 100644 --- a/framework/base/ErrorException.php +++ b/framework/base/ErrorException.php @@ -32,7 +32,7 @@ class ErrorException extends \ErrorException /** * Constructs the exception. - * @link https://secure.php.net/manual/en/errorexception.construct.php + * @link https://www.php.net/manual/en/errorexception.construct.php * @param string $message [optional] * @param int $code [optional] * @param int $severity [optional] diff --git a/framework/base/Security.php b/framework/base/Security.php index 49972d1..6276bf5 100644 --- a/framework/base/Security.php +++ b/framework/base/Security.php @@ -55,12 +55,12 @@ class Security extends Component ]; /** * @var string Hash algorithm for key derivation. Recommend sha256, sha384 or sha512. - * @see [hash_algos()](https://secure.php.net/manual/en/function.hash-algos.php) + * @see [hash_algos()](https://www.php.net/manual/en/function.hash-algos.php) */ public $kdfHash = 'sha256'; /** * @var string Hash algorithm for message authentication. Recommend sha256, sha384 or sha512. - * @see [hash_algos()](https://secure.php.net/manual/en/function.hash-algos.php) + * @see [hash_algos()](https://www.php.net/manual/en/function.hash-algos.php) */ public $macHash = 'sha256'; /** @@ -537,7 +537,7 @@ class Security extends Component * compute the hash doubles for every increment by one of $cost. * @return string The password hash string. When [[passwordHashStrategy]] is set to 'crypt', * the output is always 60 ASCII characters, when set to 'password_hash' the output length - * might increase in future versions of PHP (https://secure.php.net/manual/en/function.password-hash.php) + * might increase in future versions of PHP (https://www.php.net/manual/en/function.password-hash.php) * @throws Exception on bad password parameter or cost parameter. * @see validatePassword() */ @@ -599,7 +599,7 @@ class Security extends Component /** * Generates a salt that can be used to generate a password hash. * - * The PHP [crypt()](https://secure.php.net/manual/en/function.crypt.php) built-in function + * The PHP [crypt()](https://www.php.net/manual/en/function.crypt.php) built-in function * requires, for the Blowfish hash algorithm, a salt string in a specific format: * "$2a$", "$2x$" or "$2y$", a two digit cost parameter, "$", and 22 characters * from the alphabet "./0-9A-Za-z". diff --git a/framework/behaviors/TimestampBehavior.php b/framework/behaviors/TimestampBehavior.php index 4b4f54c..7f79fe3 100644 --- a/framework/behaviors/TimestampBehavior.php +++ b/framework/behaviors/TimestampBehavior.php @@ -84,7 +84,7 @@ class TimestampBehavior extends AttributeBehavior /** * {@inheritdoc} * - * In case, when the value is `null`, the result of the PHP function [time()](https://secure.php.net/manual/en/function.time.php) + * In case, when the value is `null`, the result of the PHP function [time()](https://www.php.net/manual/en/function.time.php) * will be used as value. */ public $value; @@ -108,7 +108,7 @@ class TimestampBehavior extends AttributeBehavior /** * {@inheritdoc} * - * In case, when the [[value]] is `null`, the result of the PHP function [time()](https://secure.php.net/manual/en/function.time.php) + * In case, when the [[value]] is `null`, the result of the PHP function [time()](https://www.php.net/manual/en/function.time.php) * will be used as value. */ protected function getValue($event) diff --git a/framework/caching/ApcCache.php b/framework/caching/ApcCache.php index 50e893c..32b74eb 100644 --- a/framework/caching/ApcCache.php +++ b/framework/caching/ApcCache.php @@ -12,8 +12,8 @@ use yii\base\InvalidConfigException; /** * ApcCache provides APC caching in terms of an application component. * - * To use this application component, the [APC PHP extension](https://secure.php.net/apc) must be loaded. - * Alternatively [APCu PHP extension](https://secure.php.net/apcu) could be used via setting `useApcu` to `true`. + * To use this application component, the [APC PHP extension](https://www.php.net/apc) must be loaded. + * Alternatively [APCu PHP extension](https://www.php.net/apcu) could be used via setting `useApcu` to `true`. * In order to enable APC or APCu for CLI you should add "apc.enable_cli = 1" to your php.ini. * * See [[Cache]] for common cache operations that ApcCache supports. diff --git a/framework/caching/ExpressionDependency.php b/framework/caching/ExpressionDependency.php index 503e6dc..09d6756 100644 --- a/framework/caching/ExpressionDependency.php +++ b/framework/caching/ExpressionDependency.php @@ -15,7 +15,7 @@ namespace yii\caching; * the same as the one evaluated when storing the data to cache. * * A PHP expression can be any PHP code that has a value. To learn more about what an expression is, - * please refer to the [php manual](https://secure.php.net/manual/en/language.expressions.php). + * please refer to the [php manual](https://www.php.net/manual/en/language.expressions.php). * * For more details and usage information on Cache, see the [guide article on caching](guide:caching-overview). * @@ -27,7 +27,7 @@ class ExpressionDependency extends Dependency /** * @var string the string representation of a PHP expression whose result is used to determine the dependency. * A PHP expression can be any PHP code that evaluates to a value. To learn more about what an expression is, - * please refer to the [php manual](https://secure.php.net/manual/en/language.expressions.php). + * please refer to the [php manual](https://www.php.net/manual/en/language.expressions.php). */ public $expression = 'true'; /** diff --git a/framework/caching/MemCache.php b/framework/caching/MemCache.php index 8fe5378..9c1e179 100644 --- a/framework/caching/MemCache.php +++ b/framework/caching/MemCache.php @@ -77,22 +77,22 @@ class MemCache extends Cache * By default the Memcached instances are destroyed at the end of the request. To create an instance that * persists between requests, you may specify a unique ID for the instance. All instances created with the * same ID will share the same connection. - * @see https://secure.php.net/manual/en/memcached.construct.php + * @see https://www.php.net/manual/en/memcached.construct.php */ public $persistentId; /** * @var array options for Memcached. This property is used only when [[useMemcached]] is true. - * @see https://secure.php.net/manual/en/memcached.setoptions.php + * @see https://www.php.net/manual/en/memcached.setoptions.php */ public $options; /** * @var string memcached sasl username. This property is used only when [[useMemcached]] is true. - * @see https://secure.php.net/manual/en/memcached.setsaslauthdata.php + * @see https://www.php.net/manual/en/memcached.setsaslauthdata.php */ public $username; /** * @var string memcached sasl password. This property is used only when [[useMemcached]] is true. - * @see https://secure.php.net/manual/en/memcached.setsaslauthdata.php + * @see https://www.php.net/manual/en/memcached.setsaslauthdata.php */ public $password; @@ -249,8 +249,8 @@ class MemCache extends Cache /** * @param array $config list of memcache or memcached server configurations. Each element must be an array * with the following keys: host, port, persistent, weight, timeout, retryInterval, status. - * @see https://secure.php.net/manual/en/memcache.addserver.php - * @see https://secure.php.net/manual/en/memcached.addserver.php + * @see https://www.php.net/manual/en/memcache.addserver.php + * @see https://www.php.net/manual/en/memcached.addserver.php */ public function setServers($config) { @@ -286,7 +286,7 @@ class MemCache extends Cache * * @param string $key the key identifying the value to be cached * @param mixed $value the value to be cached. - * @see [Memcache::set()](https://secure.php.net/manual/en/memcache.set.php) + * @see [Memcache::set()](https://www.php.net/manual/en/memcache.set.php) * @param int $duration the number of seconds in which the cached value will expire. 0 means never expire. * @return bool true if the value is successfully stored into cache, false otherwise */ @@ -308,7 +308,7 @@ class MemCache extends Cache $expire = $this->normalizeDuration($duration); // Memcached::setMulti() returns boolean - // @see https://secure.php.net/manual/en/memcached.setmulti.php + // @see https://www.php.net/manual/en/memcached.setmulti.php return $this->_cache->setMulti($data, $expire) ? [] : array_keys($data); } @@ -321,7 +321,7 @@ class MemCache extends Cache * * @param string $key the key identifying the value to be cached * @param mixed $value the value to be cached - * @see [Memcache::set()](https://secure.php.net/manual/en/memcache.set.php) + * @see [Memcache::set()](https://www.php.net/manual/en/memcache.set.php) * @param int $duration the number of seconds in which the cached value will expire. 0 means never expire. * @return bool true if the value is successfully stored into cache, false otherwise */ @@ -356,8 +356,8 @@ class MemCache extends Cache * Normalizes duration value * * @see https://github.com/yiisoft/yii2/issues/17710 - * @see https://secure.php.net/manual/en/memcache.set.php - * @see https://secure.php.net/manual/en/memcached.expiration.php + * @see https://www.php.net/manual/en/memcache.set.php + * @see https://www.php.net/manual/en/memcached.expiration.php * * @since 2.0.31 * @param int $duration diff --git a/framework/caching/MemCacheServer.php b/framework/caching/MemCacheServer.php index c627481..96d10c4 100644 --- a/framework/caching/MemCacheServer.php +++ b/framework/caching/MemCacheServer.php @@ -10,7 +10,7 @@ namespace yii\caching; /** * MemCacheServer represents the configuration data for a single memcache or memcached server. * - * See [PHP manual](https://secure.php.net/manual/en/memcache.addserver.php) for detailed explanation + * See [PHP manual](https://www.php.net/manual/en/memcache.addserver.php) for detailed explanation * of each configuration property. * * For more details and usage information on Cache, see the [guide article on caching](guide:caching-overview). diff --git a/framework/console/Application.php b/framework/console/Application.php index b8c07cd..4ee2535 100644 --- a/framework/console/Application.php +++ b/framework/console/Application.php @@ -11,7 +11,7 @@ use Yii; use yii\base\InvalidRouteException; // define STDIN, STDOUT and STDERR if the PHP SAPI did not define them (e.g. creating console application in web env) -// https://secure.php.net/manual/en/features.commandline.io-streams.php +// https://www.php.net/manual/en/features.commandline.io-streams.php defined('STDIN') or define('STDIN', fopen('php://stdin', 'r')); defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w')); defined('STDERR') or define('STDERR', fopen('php://stderr', 'w')); diff --git a/framework/console/UnknownCommandException.php b/framework/console/UnknownCommandException.php index 3dc4aed..29d0079 100644 --- a/framework/console/UnknownCommandException.php +++ b/framework/console/UnknownCommandException.php @@ -61,7 +61,7 @@ class UnknownCommandException extends Exception * available commands. The Levenshtein distance is defined as the minimal number of * characters you have to replace, insert or delete to transform str1 into str2. * - * @see https://secure.php.net/manual/en/function.levenshtein.php + * @see https://www.php.net/manual/en/function.levenshtein.php * @return array a list of suggested alternatives sorted by similarity. */ public function getSuggestedAlternatives() @@ -104,7 +104,7 @@ class UnknownCommandException extends Exception * available commands. The Levenshtein distance is defined as the minimal number of * characters you have to replace, insert or delete to transform str1 into str2. * - * @see https://secure.php.net/manual/en/function.levenshtein.php + * @see https://www.php.net/manual/en/function.levenshtein.php * @param array $actions available command names. * @param string $command the command to compare to. * @return array a list of suggested alternatives sorted by similarity. diff --git a/framework/console/controllers/ServeController.php b/framework/console/controllers/ServeController.php index 67afee6..7df3b67 100644 --- a/framework/console/controllers/ServeController.php +++ b/framework/console/controllers/ServeController.php @@ -37,7 +37,7 @@ class ServeController extends Controller public $docroot = '@app/web'; /** * @var string path or [path alias](guide:concept-aliases) to router script. - * See https://secure.php.net/manual/en/features.commandline.webserver.php + * See https://www.php.net/manual/en/features.commandline.webserver.php */ public $router; diff --git a/framework/db/ArrayExpression.php b/framework/db/ArrayExpression.php index 7a36793..b5bfd71 100644 --- a/framework/db/ArrayExpression.php +++ b/framework/db/ArrayExpression.php @@ -97,7 +97,7 @@ class ArrayExpression implements ExpressionInterface, \ArrayAccess, \Countable, /** * Whether a offset exists * - * @link https://secure.php.net/manual/en/arrayaccess.offsetexists.php + * @link https://www.php.net/manual/en/arrayaccess.offsetexists.php * @param mixed $offset

* An offset to check for. *

@@ -115,7 +115,7 @@ class ArrayExpression implements ExpressionInterface, \ArrayAccess, \Countable, /** * Offset to retrieve * - * @link https://secure.php.net/manual/en/arrayaccess.offsetget.php + * @link https://www.php.net/manual/en/arrayaccess.offsetget.php * @param mixed $offset

* The offset to retrieve. *

@@ -130,7 +130,7 @@ class ArrayExpression implements ExpressionInterface, \ArrayAccess, \Countable, /** * Offset to set * - * @link https://secure.php.net/manual/en/arrayaccess.offsetset.php + * @link https://www.php.net/manual/en/arrayaccess.offsetset.php * @param mixed $offset

* The offset to assign the value to. *

@@ -148,7 +148,7 @@ class ArrayExpression implements ExpressionInterface, \ArrayAccess, \Countable, /** * Offset to unset * - * @link https://secure.php.net/manual/en/arrayaccess.offsetunset.php + * @link https://www.php.net/manual/en/arrayaccess.offsetunset.php * @param mixed $offset

* The offset to unset. *

@@ -163,7 +163,7 @@ class ArrayExpression implements ExpressionInterface, \ArrayAccess, \Countable, /** * Count elements of an object * - * @link https://secure.php.net/manual/en/countable.count.php + * @link https://www.php.net/manual/en/countable.count.php * @return int The custom count as an integer. *

*

@@ -178,7 +178,7 @@ class ArrayExpression implements ExpressionInterface, \ArrayAccess, \Countable, /** * Retrieve an external iterator * - * @link https://secure.php.net/manual/en/iteratoraggregate.getiterator.php + * @link https://www.php.net/manual/en/iteratoraggregate.getiterator.php * @return Traversable An instance of an object implementing Iterator or * Traversable * @since 2.0.14.1 diff --git a/framework/db/Command.php b/framework/db/Command.php index 881a898..53be147 100644 --- a/framework/db/Command.php +++ b/framework/db/Command.php @@ -66,7 +66,7 @@ class Command extends Component public $pdoStatement; /** * @var int the default fetch mode for this command. - * @see https://secure.php.net/manual/en/pdostatement.setfetchmode.php + * @see https://www.php.net/manual/en/pdostatement.setfetchmode.php */ public $fetchMode = \PDO::FETCH_ASSOC; /** @@ -296,7 +296,7 @@ class Command extends Component * @param int $length length of the data type * @param mixed $driverOptions the driver-specific options * @return $this the current command being executed - * @see https://secure.php.net/manual/en/function.PDOStatement-bindParam.php + * @see https://www.php.net/manual/en/function.PDOStatement-bindParam.php */ public function bindParam($name, &$value, $dataType = null, $length = null, $driverOptions = null) { @@ -338,7 +338,7 @@ class Command extends Component * @param mixed $value The value to bind to the parameter * @param int $dataType SQL data type of the parameter. If null, the type is determined by the PHP type of the value. * @return $this the current command being executed - * @see https://secure.php.net/manual/en/function.PDOStatement-bindValue.php + * @see https://www.php.net/manual/en/function.PDOStatement-bindValue.php */ public function bindValue($name, $value, $dataType = null) { @@ -399,7 +399,7 @@ class Command extends Component /** * Executes the SQL statement and returns ALL rows at once. - * @param int $fetchMode the result fetch mode. Please refer to [PHP manual](https://secure.php.net/manual/en/function.PDOStatement-setFetchMode.php) + * @param int $fetchMode the result fetch mode. Please refer to [PHP manual](https://www.php.net/manual/en/function.PDOStatement-setFetchMode.php) * for valid fetch modes. If this parameter is null, the value set in [[fetchMode]] will be used. * @return array all rows of the query result. Each array element is an array representing a row of data. * An empty array is returned if the query results in nothing. @@ -413,7 +413,7 @@ class Command extends Component /** * Executes the SQL statement and returns the first row of the result. * This method is best used when only the first row of result is needed for a query. - * @param int $fetchMode the result fetch mode. Please refer to [PHP manual](https://secure.php.net/manual/en/pdostatement.setfetchmode.php) + * @param int $fetchMode the result fetch mode. Please refer to [PHP manual](https://www.php.net/manual/en/pdostatement.setfetchmode.php) * for valid fetch modes. If this parameter is null, the value set in [[fetchMode]] will be used. * @return array|false the first row (in terms of an array) of the query result. False is returned if the query * results in nothing. @@ -1136,7 +1136,7 @@ class Command extends Component /** * Performs the actual DB query of a SQL statement. * @param string $method method of PDOStatement to be called - * @param int $fetchMode the result fetch mode. Please refer to [PHP manual](https://secure.php.net/manual/en/function.PDOStatement-setFetchMode.php) + * @param int $fetchMode the result fetch mode. Please refer to [PHP manual](https://www.php.net/manual/en/function.PDOStatement-setFetchMode.php) * for valid fetch modes. If this parameter is null, the value set in [[fetchMode]] will be used. * @return mixed the method execution result * @throws Exception if the query causes any problem @@ -1195,7 +1195,7 @@ class Command extends Component * Returns the cache key for the query. * * @param string $method method of PDOStatement to be called - * @param int $fetchMode the result fetch mode. Please refer to [PHP manual](https://secure.php.net/manual/en/function.PDOStatement-setFetchMode.php) + * @param int $fetchMode the result fetch mode. Please refer to [PHP manual](https://www.php.net/manual/en/function.PDOStatement-setFetchMode.php) * for valid fetch modes. * @return array the cache key * @since 2.0.16 diff --git a/framework/db/Connection.php b/framework/db/Connection.php index c31a868..cc972f4 100644 --- a/framework/db/Connection.php +++ b/framework/db/Connection.php @@ -15,11 +15,11 @@ use yii\base\NotSupportedException; use yii\caching\CacheInterface; /** - * Connection represents a connection to a database via [PDO](https://secure.php.net/manual/en/book.pdo.php). + * Connection represents a connection to a database via [PDO](https://www.php.net/manual/en/book.pdo.php). * * Connection works together with [[Command]], [[DataReader]] and [[Transaction]] * to provide data access to various DBMS in a common set of APIs. They are a thin wrapper - * of the [PDO PHP extension](https://secure.php.net/manual/en/book.pdo.php). + * of the [PDO PHP extension](https://www.php.net/manual/en/book.pdo.php). * * Connection supports database replication and read-write splitting. In particular, a Connection component * can be configured with multiple [[masters]] and [[slaves]]. It will do load balancing and failover by choosing @@ -154,10 +154,10 @@ class Connection extends Component /** * @var string the Data Source Name, or DSN, contains the information required to connect to the database. - * Please refer to the [PHP manual](https://secure.php.net/manual/en/pdo.construct.php) on + * Please refer to the [PHP manual](https://www.php.net/manual/en/pdo.construct.php) on * the format of the DSN string. * - * For [SQLite](https://secure.php.net/manual/en/ref.pdo-sqlite.connection.php) you may use a [path alias](guide:concept-aliases) + * For [SQLite](https://www.php.net/manual/en/ref.pdo-sqlite.connection.php) you may use a [path alias](guide:concept-aliases) * for specifying the database path, e.g. `sqlite:@app/data/db.sql`. * * @see charset @@ -174,7 +174,7 @@ class Connection extends Component /** * @var array PDO attributes (name => value) that should be set when calling [[open()]] * to establish a DB connection. Please refer to the - * [PHP manual](https://secure.php.net/manual/en/pdo.setattribute.php) for + * [PHP manual](https://www.php.net/manual/en/pdo.setattribute.php) for * details about available attributes. */ public $attributes; @@ -923,7 +923,7 @@ class Connection extends Component * Returns the ID of the last inserted row or sequence value. * @param string $sequenceName name of the sequence object (required by some DBMS) * @return string the row ID of the last row inserted, or the last value retrieved from the sequence object - * @see https://secure.php.net/manual/en/pdo.lastinsertid.php + * @see https://www.php.net/manual/en/pdo.lastinsertid.php */ public function getLastInsertID($sequenceName = '') { @@ -935,7 +935,7 @@ class Connection extends Component * Note that if the parameter is not a string, it will be returned without change. * @param string $value string to be quoted * @return string the properly quoted string - * @see https://secure.php.net/manual/en/pdo.quote.php + * @see https://www.php.net/manual/en/pdo.quote.php */ public function quoteValue($value) { diff --git a/framework/db/DataReader.php b/framework/db/DataReader.php index 50a2d7d..a8c8756 100644 --- a/framework/db/DataReader.php +++ b/framework/db/DataReader.php @@ -37,7 +37,7 @@ use yii\base\InvalidCallException; * Doing it the second time will throw an exception. * * It is possible to use a specific mode of data fetching by setting - * [[fetchMode]]. See the [PHP manual](https://secure.php.net/manual/en/function.PDOStatement-setFetchMode.php) + * [[fetchMode]]. See the [PHP manual](https://www.php.net/manual/en/function.PDOStatement-setFetchMode.php) * for more details about possible fetch mode. * * @property-read int $columnCount The number of columns in the result set. This property is read-only. @@ -80,7 +80,7 @@ class DataReader extends \yii\base\BaseObject implements \Iterator, \Countable * should match the case of the column, as returned by the driver. * @param mixed $value Name of the PHP variable to which the column will be bound. * @param int $dataType Data type of the parameter - * @see https://secure.php.net/manual/en/function.PDOStatement-bindColumn.php + * @see https://www.php.net/manual/en/function.PDOStatement-bindColumn.php */ public function bindColumn($column, &$value, $dataType = null) { @@ -95,7 +95,7 @@ class DataReader extends \yii\base\BaseObject implements \Iterator, \Countable * Set the default fetch mode for this statement. * * @param int $mode fetch mode - * @see https://secure.php.net/manual/en/function.PDOStatement-setFetchMode.php + * @see https://www.php.net/manual/en/function.PDOStatement-setFetchMode.php */ public function setFetchMode($mode) { diff --git a/framework/db/Exception.php b/framework/db/Exception.php index ae16407..1fb68df 100644 --- a/framework/db/Exception.php +++ b/framework/db/Exception.php @@ -17,7 +17,7 @@ class Exception extends \yii\base\Exception { /** * @var array the error info provided by a PDO exception. This is the same as returned - * by [PDO::errorInfo](https://secure.php.net/manual/en/pdo.errorinfo.php). + * by [PDO::errorInfo](https://www.php.net/manual/en/pdo.errorinfo.php). */ public $errorInfo = []; diff --git a/framework/db/JsonExpression.php b/framework/db/JsonExpression.php index 0446ae8..36b4603 100644 --- a/framework/db/JsonExpression.php +++ b/framework/db/JsonExpression.php @@ -80,7 +80,7 @@ class JsonExpression implements ExpressionInterface, \JsonSerializable /** * Specify data which should be serialized to JSON * - * @link https://secure.php.net/manual/en/jsonserializable.jsonserialize.php + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * @return mixed data which can be serialized by json_encode, * which is a value of any type other than a resource. * @since 2.0.14.2 diff --git a/framework/db/PdoValue.php b/framework/db/PdoValue.php index 806eaa3..3a0ce6f 100644 --- a/framework/db/PdoValue.php +++ b/framework/db/PdoValue.php @@ -16,9 +16,9 @@ namespace yii\db; * [':name' => 'John', ':profile' => new PdoValue($profile, \PDO::PARAM_LOB)]`. * ``` * - * To see possible types, check [PDO::PARAM_* constants](https://secure.php.net/manual/en/pdo.constants.php). + * To see possible types, check [PDO::PARAM_* constants](https://www.php.net/manual/en/pdo.constants.php). * - * @see https://secure.php.net/manual/en/pdostatement.bindparam.php + * @see https://www.php.net/manual/en/pdostatement.bindparam.php * @author Dmytro Naumenko * @since 2.0.14 */ @@ -30,7 +30,7 @@ final class PdoValue implements ExpressionInterface private $value; /** * @var int One of PDO_PARAM_* constants - * @see https://secure.php.net/manual/en/pdo.constants.php + * @see https://www.php.net/manual/en/pdo.constants.php */ private $type; diff --git a/framework/db/QueryTrait.php b/framework/db/QueryTrait.php index 46527dc..9f6b064 100644 --- a/framework/db/QueryTrait.php +++ b/framework/db/QueryTrait.php @@ -39,8 +39,8 @@ trait QueryTrait /** * @var array|null how to sort the query results. This is used to construct the ORDER BY clause in a SQL statement. * The array keys are the columns to be sorted by, and the array values are the corresponding sort directions which - * can be either [SORT_ASC](https://secure.php.net/manual/en/array.constants.php#constant.sort-asc) - * or [SORT_DESC](https://secure.php.net/manual/en/array.constants.php#constant.sort-desc). + * can be either [SORT_ASC](https://www.php.net/manual/en/array.constants.php#constant.sort-asc) + * or [SORT_DESC](https://www.php.net/manual/en/array.constants.php#constant.sort-desc). * The array may also contain [[ExpressionInterface]] objects. If that is the case, the expressions * will be converted into strings without any change. */ diff --git a/framework/db/Schema.php b/framework/db/Schema.php index 6b43df3..71a6ea5 100644 --- a/framework/db/Schema.php +++ b/framework/db/Schema.php @@ -256,7 +256,7 @@ abstract class Schema extends BaseObject * Determines the PDO type for the given PHP data value. * @param mixed $data the data whose PDO type is to be determined * @return int the PDO type - * @see https://secure.php.net/manual/en/pdo.constants.php + * @see https://www.php.net/manual/en/pdo.constants.php */ public function getPdoType($data) { @@ -361,7 +361,7 @@ abstract class Schema extends BaseObject * @param string $sequenceName name of the sequence object (required by some DBMS) * @return string the row ID of the last row inserted, or the last value retrieved from the sequence object * @throws InvalidCallException if the DB connection is not active - * @see https://secure.php.net/manual/en/function.PDO-lastInsertId.php + * @see https://www.php.net/manual/en/function.PDO-lastInsertId.php */ public function getLastInsertID($sequenceName = '') { @@ -452,7 +452,7 @@ abstract class Schema extends BaseObject * Note that if the parameter is not a string, it will be returned without change. * @param string $str string to be quoted * @return string the properly quoted string - * @see https://secure.php.net/manual/en/function.PDO-quote.php + * @see https://www.php.net/manual/en/function.PDO-quote.php */ public function quoteValue($str) { diff --git a/framework/db/Transaction.php b/framework/db/Transaction.php index 7a119d1..87e72dd 100644 --- a/framework/db/Transaction.php +++ b/framework/db/Transaction.php @@ -36,7 +36,7 @@ use yii\base\NotSupportedException; * ``` * * > Note: in the above code we have two catch-blocks for compatibility - * > with PHP 5.x and PHP 7.x. `\Exception` implements the [`\Throwable` interface](https://secure.php.net/manual/en/class.throwable.php) + * > with PHP 5.x and PHP 7.x. `\Exception` implements the [`\Throwable` interface](https://www.php.net/manual/en/class.throwable.php) * > since PHP 7.0, so you can skip the part with `\Exception` if your app uses only PHP 7.0 and higher. * * @property-read bool $isActive Whether this transaction is active. Only an active transaction can diff --git a/framework/db/cubrid/Schema.php b/framework/db/cubrid/Schema.php index a487235..73a06c4 100644 --- a/framework/db/cubrid/Schema.php +++ b/framework/db/cubrid/Schema.php @@ -326,7 +326,7 @@ class Schema extends \yii\db\Schema implements ConstraintFinderInterface * Determines the PDO type for the given PHP data value. * @param mixed $data the data whose PDO type is to be determined * @return int the PDO type - * @see https://secure.php.net/manual/en/pdo.constants.php + * @see https://www.php.net/manual/en/pdo.constants.php */ public function getPdoType($data) { diff --git a/framework/db/oci/Schema.php b/framework/db/oci/Schema.php index 343393f..cba0b20 100644 --- a/framework/db/oci/Schema.php +++ b/framework/db/oci/Schema.php @@ -372,7 +372,7 @@ SQL; /** * @Overrides method in class 'Schema' - * @see https://secure.php.net/manual/en/function.PDO-lastInsertId.php -> Oracle does not support this + * @see https://www.php.net/manual/en/function.PDO-lastInsertId.php -> Oracle does not support this * * Returns the ID of the last inserted row or sequence value. * @param string $sequenceName name of the sequence object (required by some DBMS) diff --git a/framework/filters/HttpCache.php b/framework/filters/HttpCache.php index 4964e59..2a6f6e3 100644 --- a/framework/filters/HttpCache.php +++ b/framework/filters/HttpCache.php @@ -91,10 +91,10 @@ class HttpCache extends ActionFilter */ public $cacheControlHeader = 'public, max-age=3600'; /** - * @var string the name of the cache limiter to be set when [session_cache_limiter()](https://secure.php.net/manual/en/function.session-cache-limiter.php) + * @var string the name of the cache limiter to be set when [session_cache_limiter()](https://www.php.net/manual/en/function.session-cache-limiter.php) * is called. The default value is an empty string, meaning turning off automatic sending of cache headers entirely. * You may set this property to be `public`, `private`, `private_no_expire`, and `nocache`. - * Please refer to [session_cache_limiter()](https://secure.php.net/manual/en/function.session-cache-limiter.php) + * Please refer to [session_cache_limiter()](https://www.php.net/manual/en/function.session-cache-limiter.php) * for detailed explanation of these values. * * If this property is `null`, then `session_cache_limiter()` will not be called. As a result, diff --git a/framework/helpers/BaseArrayHelper.php b/framework/helpers/BaseArrayHelper.php index d87ee9d..dcd2865 100644 --- a/framework/helpers/BaseArrayHelper.php +++ b/framework/helpers/BaseArrayHelper.php @@ -617,7 +617,7 @@ class BaseArrayHelper { if ($caseSensitive) { // Function `isset` checks key faster but skips `null`, `array_key_exists` handles this case - // https://secure.php.net/manual/en/function.array-key-exists.php#107786 + // https://www.php.net/manual/en/function.array-key-exists.php#107786 if (is_array($array) && (isset($array[$key]) || array_key_exists($key, $array))) { return true; } @@ -649,7 +649,7 @@ class BaseArrayHelper * When sorting by multiple keys with different sorting directions, use an array of sorting directions. * @param int|array $sortFlag the PHP sort flag. Valid values include * `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`. - * Please refer to [PHP manual](https://secure.php.net/manual/en/function.sort.php) + * Please refer to [PHP manual](https://www.php.net/manual/en/function.sort.php) * for more details. When sorting by multiple keys with different sort flags, use an array of sort flags. * @throws InvalidArgumentException if the $direction or $sortFlag parameters do not have * correct number of elements as that of $key. @@ -700,7 +700,7 @@ class BaseArrayHelper * @param string $charset the charset that the data is using. If not set, * [[\yii\base\Application::charset]] will be used. * @return array the encoded data - * @see https://secure.php.net/manual/en/function.htmlspecialchars.php + * @see https://www.php.net/manual/en/function.htmlspecialchars.php */ public static function htmlEncode($data, $valuesOnly = true, $charset = null) { @@ -733,7 +733,7 @@ class BaseArrayHelper * @param bool $valuesOnly whether to decode array values only. If false, * both the array keys and array values will be decoded. * @return array the decoded data - * @see https://secure.php.net/manual/en/function.htmlspecialchars-decode.php + * @see https://www.php.net/manual/en/function.htmlspecialchars-decode.php */ public static function htmlDecode($data, $valuesOnly = true) { @@ -831,14 +831,14 @@ class BaseArrayHelper /** * Check whether an array or [[Traversable]] contains an element. * - * This method does the same as the PHP function [in_array()](https://secure.php.net/manual/en/function.in-array.php) + * This method does the same as the PHP function [in_array()](https://www.php.net/manual/en/function.in-array.php) * but additionally works for objects that implement the [[Traversable]] interface. * @param mixed $needle The value to look for. * @param array|Traversable $haystack The set of values to search. * @param bool $strict Whether to enable strict (`===`) comparison. * @return bool `true` if `$needle` was found in `$haystack`, `false` otherwise. * @throws InvalidArgumentException if `$haystack` is neither traversable nor an array. - * @see https://secure.php.net/manual/en/function.in-array.php + * @see https://www.php.net/manual/en/function.in-array.php * @since 2.0.7 */ public static function isIn($needle, $haystack, $strict = false) @@ -861,11 +861,11 @@ class BaseArrayHelper /** * Checks whether a variable is an array or [[Traversable]]. * - * This method does the same as the PHP function [is_array()](https://secure.php.net/manual/en/function.is-array.php) + * This method does the same as the PHP function [is_array()](https://www.php.net/manual/en/function.is-array.php) * but additionally works on objects that implement the [[Traversable]] interface. * @param mixed $var The variable being evaluated. * @return bool whether $var can be traversed via foreach - * @see https://secure.php.net/manual/en/function.is-array.php + * @see https://www.php.net/manual/en/function.is-array.php * @since 2.0.8 */ public static function isTraversable($var) diff --git a/framework/helpers/BaseFileHelper.php b/framework/helpers/BaseFileHelper.php index 2e5a327..8dd2064 100644 --- a/framework/helpers/BaseFileHelper.php +++ b/framework/helpers/BaseFileHelper.php @@ -137,11 +137,11 @@ class BaseFileHelper /** * Determines the MIME type of the specified file. * This method will first try to determine the MIME type based on - * [finfo_open](https://secure.php.net/manual/en/function.finfo-open.php). If the `fileinfo` extension is not installed, + * [finfo_open](https://www.php.net/manual/en/function.finfo-open.php). If the `fileinfo` extension is not installed, * it will fall back to [[getMimeTypeByExtension()]] when `$checkExtension` is true. * @param string $file the file name. * @param string|null $magicFile name of the optional magic database file (or alias), usually something like `/path/to/magic.mime`. - * This will be passed as the second parameter to [finfo_open()](https://secure.php.net/manual/en/function.finfo-open.php) + * This will be passed as the second parameter to [finfo_open()](https://www.php.net/manual/en/function.finfo-open.php) * when the `fileinfo` extension is installed. If the MIME type is being determined based via [[getMimeTypeByExtension()]] * and this is null, it will use the file specified by [[mimeMagicFile]]. * @param bool $checkExtension whether to use the file extension to determine the MIME type in case @@ -502,7 +502,7 @@ class BaseFileHelper * @param array $options options for directory searching. Valid options are: * * - `filter`: callback, a PHP callback that is called for each directory or file. - * The signature of the callback should be: `function (string $path): bool`, where `$path` refers + * The signature of the callback should be: `function (string $path): bool`, where `$path` refers * the full path to be filtered. The callback can return one of the following values: * * * `true`: the directory will be returned diff --git a/framework/helpers/BaseFormatConverter.php b/framework/helpers/BaseFormatConverter.php index 340f7d4..84417bf 100644 --- a/framework/helpers/BaseFormatConverter.php +++ b/framework/helpers/BaseFormatConverter.php @@ -91,7 +91,7 @@ class BaseFormatConverter * * Pattern constructs that are not supported by the PHP format will be removed. * - * [php date() function format]: https://secure.php.net/manual/en/function.date.php + * [php date() function format]: https://www.php.net/manual/en/function.date.php * [ICU format]: http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax * * @param string $pattern date format pattern in ICU format. @@ -238,7 +238,7 @@ class BaseFormatConverter * * Pattern constructs that are not supported by the ICU format will be removed. * - * [php date() function format]: https://secure.php.net/manual/en/function.date.php + * [php date() function format]: https://www.php.net/manual/en/function.date.php * [ICU format]: http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax * * Since 2.0.13 it handles escaped characters correctly. @@ -248,7 +248,7 @@ class BaseFormatConverter */ public static function convertDatePhpToIcu($pattern) { - // https://secure.php.net/manual/en/function.date.php + // https://www.php.net/manual/en/function.date.php $result = strtr($pattern, [ "'" => "''''", // single `'` should be encoded as `''`, which internally should be encoded as `''''` // Day @@ -497,7 +497,7 @@ class BaseFormatConverter * * Pattern constructs that are not supported by the jQuery UI format will be removed. * - * [php date() function format]: https://secure.php.net/manual/en/function.date.php + * [php date() function format]: https://www.php.net/manual/en/function.date.php * [jQuery UI date format]: http://api.jqueryui.com/datepicker/#utility-formatDate * * @param string $pattern date format pattern in php date()-function format. @@ -505,7 +505,7 @@ class BaseFormatConverter */ public static function convertDatePhpToJui($pattern) { - // https://secure.php.net/manual/en/function.date.php + // https://www.php.net/manual/en/function.date.php return strtr($pattern, [ // Day 'd' => 'dd', // Day of the month, 2 digits with leading zeros 01 to 31 diff --git a/framework/helpers/BaseHtml.php b/framework/helpers/BaseHtml.php index 83caf53..5890709 100644 --- a/framework/helpers/BaseHtml.php +++ b/framework/helpers/BaseHtml.php @@ -104,7 +104,7 @@ class BaseHtml * HTML entities in `$content` will not be further encoded. * @return string the encoded content * @see decode() - * @see https://secure.php.net/manual/en/function.htmlspecialchars.php + * @see https://www.php.net/manual/en/function.htmlspecialchars.php */ public static function encode($content, $doubleEncode = true) { @@ -117,7 +117,7 @@ class BaseHtml * @param string $content the content to be decoded * @return string the decoded content * @see encode() - * @see https://secure.php.net/manual/en/function.htmlspecialchars-decode.php + * @see https://www.php.net/manual/en/function.htmlspecialchars-decode.php */ public static function decode($content) { diff --git a/framework/helpers/BaseInflector.php b/framework/helpers/BaseInflector.php index 9ee02b3..4cad3f9 100644 --- a/framework/helpers/BaseInflector.php +++ b/framework/helpers/BaseInflector.php @@ -287,7 +287,7 @@ class BaseInflector /** * @var mixed Either a [[\Transliterator]], or a string from which a [[\Transliterator]] can be built * for transliteration. Used by [[transliterate()]] when intl is available. Defaults to [[TRANSLITERATE_LOOSE]] - * @see https://secure.php.net/manual/en/transliterator.transliterate.php + * @see https://www.php.net/manual/en/transliterator.transliterate.php */ public static $transliterator = self::TRANSLITERATE_LOOSE; diff --git a/framework/helpers/BaseJson.php b/framework/helpers/BaseJson.php index 9d8b2d9..fea90a1 100644 --- a/framework/helpers/BaseJson.php +++ b/framework/helpers/BaseJson.php @@ -66,7 +66,7 @@ class BaseJson * * @param mixed $value the data to be encoded. * @param int $options the encoding options. For more details please refer to - * . Default is `JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE`. + * . Default is `JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE`. * @return string the encoding result. * @throws InvalidArgumentException if there is any encoding error. */ diff --git a/framework/helpers/BaseStringHelper.php b/framework/helpers/BaseStringHelper.php index 2953f84..9af9777 100644 --- a/framework/helpers/BaseStringHelper.php +++ b/framework/helpers/BaseStringHelper.php @@ -41,7 +41,7 @@ class BaseStringHelper * @param int $length the desired portion length. If not specified or `null`, there will be * no limit on length i.e. the output will be until the end of the string. * @return string the extracted part of string, or FALSE on failure or an empty string. - * @see https://secure.php.net/manual/en/function.substr.php + * @see https://www.php.net/manual/en/function.substr.php */ public static function byteSubstr($string, $start, $length = null) { @@ -63,7 +63,7 @@ class BaseStringHelper * @param string $path A path string. * @param string $suffix If the name component ends in suffix this will also be cut off. * @return string the trailing name component of the given path. - * @see https://secure.php.net/manual/en/function.basename.php + * @see https://www.php.net/manual/en/function.basename.php */ public static function basename($path, $suffix = '') { @@ -88,7 +88,7 @@ class BaseStringHelper * * @param string $path A path string. * @return string the parent directory's path. - * @see https://secure.php.net/manual/en/function.basename.php + * @see https://www.php.net/manual/en/function.basename.php */ public static function dirname($path) { @@ -440,7 +440,7 @@ class BaseStringHelper * @param string $string the string to be proceeded * @param string $encoding Optional, defaults to "UTF-8" * @return string - * @see https://secure.php.net/manual/en/function.ucfirst.php + * @see https://www.php.net/manual/en/function.ucfirst.php * @since 2.0.16 */ public static function mb_ucfirst($string, $encoding = 'UTF-8') diff --git a/framework/helpers/Markdown.php b/framework/helpers/Markdown.php index 8552d13..c86e5e4 100644 --- a/framework/helpers/Markdown.php +++ b/framework/helpers/Markdown.php @@ -23,7 +23,7 @@ namespace yii\helpers; * For more details please refer to the [Markdown library documentation](https://github.com/cebe/markdown#readme). * * > Note: The Markdown library works with PHPDoc annotations so if you use it together with - * > PHP `opcache` make sure [it does not strip comments](https://secure.php.net/manual/en/opcache.configuration.php#ini.opcache.save-comments). + * > PHP `opcache` make sure [it does not strip comments](https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.save-comments). * * @author Carsten Brandt * @since 2.0 diff --git a/framework/i18n/Formatter.php b/framework/i18n/Formatter.php index 27bad52..cf67ddf 100644 --- a/framework/i18n/Formatter.php +++ b/framework/i18n/Formatter.php @@ -35,7 +35,7 @@ use yii\helpers\Url; * You can access that instance via `Yii::$app->formatter`. * * The Formatter class is designed to format values according to a [[locale]]. For this feature to work - * the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) has to be installed. + * the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) has to be installed. * Most of the methods however work also if the PHP intl extension is not installed by providing * a fallback implementation. Without intl month and day names are in English only. * Note that even if the intl extension is installed, formatting date and time values for years >=2038 or <=1901 @@ -44,7 +44,7 @@ use yii\helpers\Url; * * > Note: The Formatter class is meant to be used for formatting values for display to users in different * > languages and time zones. If you need to format a date or time in machine readable format, use the - * > PHP [date()](https://secure.php.net/manual/en/function.date.php) function instead. + * > PHP [date()](https://www.php.net/manual/en/function.date.php) function instead. * * @author Qiang Xue * @author Enrica Ruedin @@ -94,7 +94,7 @@ class Formatter extends Component /** * @var string the locale ID that is used to localize the date and number formatting. * For number and date formatting this is only effective when the - * [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is installed. + * [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is installed. * If not set, [[\yii\base\Application::language]] will be used. */ public $locale; @@ -108,9 +108,9 @@ class Formatter extends Component /** * @var string the time zone to use for formatting time and date values. * - * This can be any value that may be passed to [date_default_timezone_set()](https://secure.php.net/manual/en/function.date-default-timezone-set.php) + * This can be any value that may be passed to [date_default_timezone_set()](https://www.php.net/manual/en/function.date-default-timezone-set.php) * e.g. `UTC`, `Europe/Berlin` or `America/Chicago`. - * Refer to the [php manual](https://secure.php.net/manual/en/timezones.php) for available time zones. + * Refer to the [php manual](https://www.php.net/manual/en/timezones.php) for available time zones. * If this property is not set, [[\yii\base\Application::timeZone]] will be used. * * Note that the default time zone for input data is assumed to be UTC by default if no time zone is included in the input date value. @@ -121,7 +121,7 @@ class Formatter extends Component * @var string the time zone that is assumed for input values if they do not include a time zone explicitly. * * The value must be a valid time zone identifier, e.g. `UTC`, `Europe/Berlin` or `America/Chicago`. - * Please refer to the [php manual](https://secure.php.net/manual/en/timezones.php) for available time zones. + * Please refer to the [php manual](https://www.php.net/manual/en/timezones.php) for available time zones. * * It defaults to `UTC` so you only have to adjust this value if you store datetime values in another time zone in your database. * @@ -137,7 +137,7 @@ class Formatter extends Component * * It can also be a custom format as specified in the [ICU manual](http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax). * Alternatively this can be a string prefixed with `php:` representing a format that can be recognized by the - * PHP [date()](https://secure.php.net/manual/en/function.date.php)-function. + * PHP [date()](https://www.php.net/manual/en/function.date.php)-function. * * For example: * @@ -153,7 +153,7 @@ class Formatter extends Component * * It can also be a custom format as specified in the [ICU manual](http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax). * Alternatively this can be a string prefixed with `php:` representing a format that can be recognized by the - * PHP [date()](https://secure.php.net/manual/en/function.date.php)-function. + * PHP [date()](https://www.php.net/manual/en/function.date.php)-function. * * For example: * @@ -170,7 +170,7 @@ class Formatter extends Component * It can also be a custom format as specified in the [ICU manual](http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax). * * Alternatively this can be a string prefixed with `php:` representing a format that can be recognized by the - * PHP [date()](https://secure.php.net/manual/en/function.date.php)-function. + * PHP [date()](https://www.php.net/manual/en/function.date.php)-function. * * For example: * @@ -182,7 +182,7 @@ class Formatter extends Component public $datetimeFormat = 'medium'; /** * @var \IntlCalendar|int|null the calendar to be used for date formatting. The value of this property will be directly - * passed to the [constructor of the `IntlDateFormatter` class](https://secure.php.net/manual/en/intldateformatter.create.php). + * passed to the [constructor of the `IntlDateFormatter` class](https://www.php.net/manual/en/intldateformatter.create.php). * * Defaults to `null`, which means the Gregorian calendar will be used. You may also explicitly pass the constant * `\IntlDateFormatter::GREGORIAN` for Gregorian calendar. @@ -201,42 +201,42 @@ class Formatter extends Component * Available calendar names can be found in the [ICU manual](http://userguide.icu-project.org/datetime/calendar). * * Since PHP 5.5 you may also use an instance of the [[\IntlCalendar]] class. - * Check the [PHP manual](https://secure.php.net/manual/en/intldateformatter.create.php) for more details. + * Check the [PHP manual](https://www.php.net/manual/en/intldateformatter.create.php) for more details. * - * If the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is not available, setting this property will have no effect. + * If the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is not available, setting this property will have no effect. * - * @see https://secure.php.net/manual/en/intldateformatter.create.php - * @see https://secure.php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants.calendartypes - * @see https://secure.php.net/manual/en/class.intlcalendar.php + * @see https://www.php.net/manual/en/intldateformatter.create.php + * @see https://www.php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants.calendartypes + * @see https://www.php.net/manual/en/class.intlcalendar.php * @since 2.0.7 */ public $calendar; /** * @var string|null the character displayed as the decimal point when formatting a number. * If not set, the decimal separator corresponding to [[locale]] will be used. - * If [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is not available, the default value is '.'. + * If [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is not available, the default value is '.'. */ public $decimalSeparator; /** * @var string the character displayed as the decimal point when formatting a currency. * If not set, the currency decimal separator corresponding to [[locale]] will be used. - * If [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is not available, setting this property will have no effect. + * If [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is not available, setting this property will have no effect. * @since 2.0.35 */ public $currencyDecimalSeparator; /** * @var string|null the character displayed as the thousands separator (also called grouping separator) character when formatting a number. * If not set, the thousand separator corresponding to [[locale]] will be used. - * If [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is not available, the default value is ','. + * If [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is not available, the default value is ','. */ public $thousandSeparator; /** * @var array a list of name value pairs that are passed to the - * intl [NumberFormatter::setAttribute()](https://secure.php.net/manual/en/numberformatter.setattribute.php) method of all + * intl [NumberFormatter::setAttribute()](https://www.php.net/manual/en/numberformatter.setattribute.php) method of all * the number formatter objects created by [[createNumberFormatter()]]. - * This property takes only effect if the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is installed. + * This property takes only effect if the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is installed. * - * Please refer to the [PHP manual](https://secure.php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants.unumberformatattribute) + * Please refer to the [PHP manual](https://www.php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants.unumberformatattribute) * for the possible options. * * For example to adjust the maximum and minimum value of fraction digits you can configure this property like the following: @@ -251,11 +251,11 @@ class Formatter extends Component public $numberFormatterOptions = []; /** * @var array a list of name value pairs that are passed to the - * intl [NumberFormatter::setTextAttribute()](https://secure.php.net/manual/en/numberformatter.settextattribute.php) method of all + * intl [NumberFormatter::setTextAttribute()](https://www.php.net/manual/en/numberformatter.settextattribute.php) method of all * the number formatter objects created by [[createNumberFormatter()]]. - * This property takes only effect if the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is installed. + * This property takes only effect if the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is installed. * - * Please refer to the [PHP manual](https://secure.php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants.unumberformattextattribute) + * Please refer to the [PHP manual](https://www.php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants.unumberformattextattribute) * for the possible options. * * For example to change the minus sign for negative numbers you can configure this property like the following: @@ -269,11 +269,11 @@ class Formatter extends Component public $numberFormatterTextOptions = []; /** * @var array a list of name value pairs that are passed to the - * intl [NumberFormatter::setSymbol()](https://secure.php.net/manual/en/numberformatter.setsymbol.php) method of all + * intl [NumberFormatter::setSymbol()](https://www.php.net/manual/en/numberformatter.setsymbol.php) method of all * the number formatter objects created by [[createNumberFormatter()]]. - * This property takes only effect if the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is installed. + * This property takes only effect if the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is installed. * - * Please refer to the [PHP manual](https://secure.php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants.unumberformatsymbol) + * Please refer to the [PHP manual](https://www.php.net/manual/en/class.numberformatter.php#intl.numberformatter-constants.unumberformatsymbol) * for the possible options. * * For example to choose a custom currency symbol, e.g. [U+20BD](http://unicode-table.com/en/20BD/) instead of `руб.` for Russian Ruble: @@ -377,7 +377,7 @@ class Formatter extends Component ]; /** - * @var bool whether the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is loaded. + * @var bool whether the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is loaded. */ private $_intlLoaded = false; /** @@ -626,9 +626,9 @@ class Formatter extends Component * types of value are supported: * * - an integer representing a UNIX timestamp. A UNIX timestamp is always in UTC by its definition. - * - a string that can be [parsed to create a DateTime object](https://secure.php.net/manual/en/datetime.formats.php). + * - a string that can be [parsed to create a DateTime object](https://www.php.net/manual/en/datetime.formats.php). * The timestamp is assumed to be in [[defaultTimeZone]] unless a time zone is explicitly given. - * - a PHP [DateTime](https://secure.php.net/manual/en/class.datetime.php) object. You may set the time zone + * - a PHP [DateTime](https://www.php.net/manual/en/class.datetime.php) object. You may set the time zone * for the DateTime object to specify the source time zone. * * The formatter will convert date values according to [[timeZone]] before formatting it. @@ -642,7 +642,7 @@ class Formatter extends Component * It can also be a custom format as specified in the [ICU manual](http://userguide.icu-project.org/formatparse/datetime). * * Alternatively this can be a string prefixed with `php:` representing a format that can be recognized by the - * PHP [date()](https://secure.php.net/manual/en/function.date.php)-function. + * PHP [date()](https://www.php.net/manual/en/function.date.php)-function. * * @return string the formatted result. * @throws InvalidArgumentException if the input value can not be evaluated as a date value. @@ -664,9 +664,9 @@ class Formatter extends Component * types of value are supported: * * - an integer representing a UNIX timestamp. A UNIX timestamp is always in UTC by its definition. - * - a string that can be [parsed to create a DateTime object](https://secure.php.net/manual/en/datetime.formats.php). + * - a string that can be [parsed to create a DateTime object](https://www.php.net/manual/en/datetime.formats.php). * The timestamp is assumed to be in [[defaultTimeZone]] unless a time zone is explicitly given. - * - a PHP [DateTime](https://secure.php.net/manual/en/class.datetime.php) object. You may set the time zone + * - a PHP [DateTime](https://www.php.net/manual/en/class.datetime.php) object. You may set the time zone * for the DateTime object to specify the source time zone. * * The formatter will convert date values according to [[timeZone]] before formatting it. @@ -679,7 +679,7 @@ class Formatter extends Component * It can also be a custom format as specified in the [ICU manual](http://userguide.icu-project.org/formatparse/datetime). * * Alternatively this can be a string prefixed with `php:` representing a format that can be recognized by the - * PHP [date()](https://secure.php.net/manual/en/function.date.php)-function. + * PHP [date()](https://www.php.net/manual/en/function.date.php)-function. * * @return string the formatted result. * @throws InvalidArgumentException if the input value can not be evaluated as a date value. @@ -701,9 +701,9 @@ class Formatter extends Component * types of value are supported: * * - an integer representing a UNIX timestamp. A UNIX timestamp is always in UTC by its definition. - * - a string that can be [parsed to create a DateTime object](https://secure.php.net/manual/en/datetime.formats.php). + * - a string that can be [parsed to create a DateTime object](https://www.php.net/manual/en/datetime.formats.php). * The timestamp is assumed to be in [[defaultTimeZone]] unless a time zone is explicitly given. - * - a PHP [DateTime](https://secure.php.net/manual/en/class.datetime.php) object. You may set the time zone + * - a PHP [DateTime](https://www.php.net/manual/en/class.datetime.php) object. You may set the time zone * for the DateTime object to specify the source time zone. * * The formatter will convert date values according to [[timeZone]] before formatting it. @@ -716,7 +716,7 @@ class Formatter extends Component * It can also be a custom format as specified in the [ICU manual](http://userguide.icu-project.org/formatparse/datetime). * * Alternatively this can be a string prefixed with `php:` representing a format that can be recognized by the - * PHP [date()](https://secure.php.net/manual/en/function.date.php)-function. + * PHP [date()](https://www.php.net/manual/en/function.date.php)-function. * * @return string the formatted result. * @throws InvalidArgumentException if the input value can not be evaluated as a date value. @@ -747,9 +747,9 @@ class Formatter extends Component * types of value are supported: * * - an integer representing a UNIX timestamp - * - a string that can be [parsed to create a DateTime object](https://secure.php.net/manual/en/datetime.formats.php). + * - a string that can be [parsed to create a DateTime object](https://www.php.net/manual/en/datetime.formats.php). * The timestamp is assumed to be in [[defaultTimeZone]] unless a time zone is explicitly given. - * - a PHP [DateTime](https://secure.php.net/manual/en/class.datetime.php) object + * - a PHP [DateTime](https://www.php.net/manual/en/class.datetime.php) object * * @param string $format the format used to convert the value into a date string. * @param string $type 'date', 'time', or 'datetime'. @@ -846,9 +846,9 @@ class Formatter extends Component * types of value are supported: * * - an integer representing a UNIX timestamp - * - a string that can be [parsed to create a DateTime object](https://secure.php.net/manual/en/datetime.formats.php). + * - a string that can be [parsed to create a DateTime object](https://www.php.net/manual/en/datetime.formats.php). * The timestamp is assumed to be in [[defaultTimeZone]] unless a time zone is explicitly given. - * - a PHP [DateTime](https://secure.php.net/manual/en/class.datetime.php) object + * - a PHP [DateTime](https://www.php.net/manual/en/class.datetime.php) object * * @param bool $checkDateTimeInfo whether to also check if the date/time value has some time and date information attached. * Defaults to `false`. If `true`, the method will then return an array with the first element being the normalized @@ -920,9 +920,9 @@ class Formatter extends Component * types of value are supported: * * - an integer representing a UNIX timestamp - * - a string that can be [parsed to create a DateTime object](https://secure.php.net/manual/en/datetime.formats.php). + * - a string that can be [parsed to create a DateTime object](https://www.php.net/manual/en/datetime.formats.php). * The timestamp is assumed to be in [[defaultTimeZone]] unless a time zone is explicitly given. - * - a PHP [DateTime](https://secure.php.net/manual/en/class.datetime.php) object + * - a PHP [DateTime](https://www.php.net/manual/en/class.datetime.php) object * * @return string the formatted result. */ @@ -948,9 +948,9 @@ class Formatter extends Component * types of value are supported: * * - an integer representing a UNIX timestamp - * - a string that can be [parsed to create a DateTime object](https://secure.php.net/manual/en/datetime.formats.php). + * - a string that can be [parsed to create a DateTime object](https://www.php.net/manual/en/datetime.formats.php). * The timestamp is assumed to be in [[defaultTimeZone]] unless a time zone is explicitly given. - * - a PHP [DateTime](https://secure.php.net/manual/en/class.datetime.php) object + * - a PHP [DateTime](https://www.php.net/manual/en/class.datetime.php) object * - a PHP DateInterval object (a positive time interval will refer to the past, a negative one to the future) * * @param int|string|DateTime|DateTimeInterface|null $referenceTime if specified the value is used as a reference time instead of `now` @@ -1030,7 +1030,7 @@ class Formatter extends Component * Represents the value as duration in human readable format. * * @param DateInterval|string|int|null $value the value to be formatted. Acceptable formats: - * - [DateInterval object](https://secure.php.net/manual/ru/class.dateinterval.php) + * - [DateInterval object](https://www.php.net/manual/ru/class.dateinterval.php) * - integer - number of seconds. For example: value `131` represents `2 minutes, 11 seconds` * - ISO8601 duration format. For example, all of these values represent `1 day, 2 hours, 30 minutes` duration: * `2015-01-01T13:00:00Z/2015-01-02T13:30:00Z` - between two datetime values @@ -1101,7 +1101,7 @@ class Formatter extends Component * Formats the value as an integer number by removing any decimal digits without rounding. * * Since 2.0.16 numbers that are mispresented after normalization are formatted as strings using fallback function - * without [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) support. For very big numbers it's + * without [PHP intl extension](https://www.php.net/manual/en/book.intl.php) support. For very big numbers it's * recommended to pass them as strings and not use scientific notation otherwise the output might be wrong. * * @param mixed $value the value to be formatted. @@ -1142,7 +1142,7 @@ class Formatter extends Component * value is rounded automatically to the defined decimal digits. * * Since 2.0.16 numbers that are mispresented after normalization are formatted as strings using fallback function - * without [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) support. For very big numbers it's + * without [PHP intl extension](https://www.php.net/manual/en/book.intl.php) support. For very big numbers it's * recommended to pass them as strings and not use scientific notation otherwise the output might be wrong. * * @param mixed $value the value to be formatted. @@ -1192,7 +1192,7 @@ class Formatter extends Component * Formats the value as a percent number with "%" sign. * * Since 2.0.16 numbers that are mispresented after normalization are formatted as strings using fallback function - * without [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) support. For very big numbers it's + * without [PHP intl extension](https://www.php.net/manual/en/book.intl.php) support. For very big numbers it's * recommended to pass them as strings and not use scientific notation otherwise the output might be wrong. * * @param mixed $value the value to be formatted. It must be a factor e.g. `0.75` will result in `75%`. @@ -1245,7 +1245,7 @@ class Formatter extends Component * If not given, the number of digits depends in the input value and is determined based on * `NumberFormatter::MIN_FRACTION_DIGITS` and `NumberFormatter::MAX_FRACTION_DIGITS`, which can be configured * using [[$numberFormatterOptions]]. - * If the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is not available, the default value + * If the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is not available, the default value * depends on your PHP configuration. * If you want consistent behavior between environments where intl is available and not, you should explicitly * specify a value here. @@ -1280,7 +1280,7 @@ class Formatter extends Component /** * Formats the value as a currency number. * - * This function does not require the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) to be installed + * This function does not require the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) to be installed * to work, but it is highly recommended to install it to get good formatting results. * * Since 2.0.16 numbers that are mispresented after normalization are formatted as strings using fallback function @@ -1311,7 +1311,7 @@ class Formatter extends Component if ($this->_intlLoaded) { $currency = $currency ?: $this->currencyCode; // currency code must be set before fraction digits - // https://secure.php.net/manual/en/numberformatter.formatcurrency.php#114376 + // https://www.php.net/manual/en/numberformatter.formatcurrency.php#114376 if ($currency && !isset($textOptions[NumberFormatter::CURRENCY_CODE])) { $textOptions[NumberFormatter::CURRENCY_CODE] = $currency; } @@ -1341,14 +1341,14 @@ class Formatter extends Component /** * Formats the value as a number spellout. * - * This function requires the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) to be installed. + * This function requires the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) to be installed. * * This formatter does not work well with very big numbers. * * @param mixed $value the value to be formatted * @return string the formatted result. * @throws InvalidArgumentException if the input value is not numeric or the formatting failed. - * @throws InvalidConfigException when the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is not available. + * @throws InvalidConfigException when the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is not available. */ public function asSpellout($value) { @@ -1371,14 +1371,14 @@ class Formatter extends Component /** * Formats the value as a ordinal value of a number. * - * This function requires the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) to be installed. + * This function requires the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) to be installed. * * This formatter does not work well with very big numbers. * * @param mixed $value the value to be formatted * @return string the formatted result. * @throws InvalidArgumentException if the input value is not numeric or the formatting failed. - * @throws InvalidConfigException when the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is not available. + * @throws InvalidConfigException when the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is not available. */ public function asOrdinal($value) { @@ -1751,9 +1751,9 @@ class Formatter extends Component /** * Normalizes a numeric input value. * - * - everything [empty](https://secure.php.net/manual/en/function.empty.php) will result in `0` - * - a [numeric](https://secure.php.net/manual/en/function.is-numeric.php) string will be casted to float - * - everything else will be returned if it is [numeric](https://secure.php.net/manual/en/function.is-numeric.php), + * - everything [empty](https://www.php.net/manual/en/function.empty.php) will result in `0` + * - a [numeric](https://www.php.net/manual/en/function.is-numeric.php) string will be casted to float + * - everything else will be returned if it is [numeric](https://www.php.net/manual/en/function.is-numeric.php), * otherwise an exception is thrown. * * @param mixed $value the input value diff --git a/framework/i18n/Locale.php b/framework/i18n/Locale.php index 86b78de..a0e1a1b 100644 --- a/framework/i18n/Locale.php +++ b/framework/i18n/Locale.php @@ -14,7 +14,7 @@ use yii\base\InvalidConfigException; /** * Locale provides various locale information via convenient methods. * - * The class requires [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) to be installed. + * The class requires [PHP intl extension](https://www.php.net/manual/en/book.intl.php) to be installed. * * @property-read string $currencySymbol This property is read-only. * diff --git a/framework/i18n/MessageFormatter.php b/framework/i18n/MessageFormatter.php index 53e095b..47e4246 100644 --- a/framework/i18n/MessageFormatter.php +++ b/framework/i18n/MessageFormatter.php @@ -23,7 +23,7 @@ use yii\base\NotSupportedException; * substituted. * - Fixes PHP 5.5 weird placeholder replacement in case no arguments are provided at all (https://bugs.php.net/bug.php?id=65920). * - Offers limited support for message formatting in case PHP intl extension is not installed. - * However it is highly recommended that you install [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) if you want + * However it is highly recommended that you install [PHP intl extension](https://www.php.net/manual/en/book.intl.php) if you want * to use MessageFormatter features. * * The fallback implementation only supports the following message formats: @@ -32,7 +32,7 @@ use yii\base\NotSupportedException; * - simple parameters * - integer number parameters * - * The fallback implementation does NOT support the ['apostrophe-friendly' syntax](https://secure.php.net/manual/en/messageformatter.formatmessage.php). + * The fallback implementation does NOT support the ['apostrophe-friendly' syntax](https://www.php.net/manual/en/messageformatter.formatmessage.php). * Also messages that are working with the fallback implementation are not necessarily compatible with the * PHP intl MessageFormatter so do not rely on the fallback if you are able to install intl extension somehow. * @@ -51,7 +51,7 @@ class MessageFormatter extends Component /** * Get the error code from the last operation. - * @link https://secure.php.net/manual/en/messageformatter.geterrorcode.php + * @link https://www.php.net/manual/en/messageformatter.geterrorcode.php * @return string Code of the last error. */ public function getErrorCode() @@ -61,7 +61,7 @@ class MessageFormatter extends Component /** * Get the error text from the last operation. - * @link https://secure.php.net/manual/en/messageformatter.geterrormessage.php + * @link https://www.php.net/manual/en/messageformatter.geterrormessage.php * @return string Description of the last error. */ public function getErrorMessage() @@ -72,7 +72,7 @@ class MessageFormatter extends Component /** * Formats a message via [ICU message format](http://userguide.icu-project.org/formatparse/messages). * - * It uses the PHP intl extension's [MessageFormatter](https://secure.php.net/manual/en/class.messageformatter.php) + * It uses the PHP intl extension's [MessageFormatter](https://www.php.net/manual/en/class.messageformatter.php) * and works around some issues. * If PHP intl is not installed a fallback will be used that supports a subset of the ICU message format. * @@ -134,7 +134,7 @@ class MessageFormatter extends Component /** * Parses an input string according to an [ICU message format](http://userguide.icu-project.org/formatparse/messages) pattern. * - * It uses the PHP intl extension's [MessageFormatter::parse()](https://secure.php.net/manual/en/messageformatter.parsemessage.php) + * It uses the PHP intl extension's [MessageFormatter::parse()](https://www.php.net/manual/en/messageformatter.parsemessage.php) * and adds support for named arguments. * Usage of this method requires PHP intl extension to be installed. * diff --git a/framework/log/FileTarget.php b/framework/log/FileTarget.php index a29c673..157c0db 100644 --- a/framework/log/FileTarget.php +++ b/framework/log/FileTarget.php @@ -64,9 +64,9 @@ class FileTarget extends Target * systems which do not play well with rename on open files. Rotation by renaming however is * a bit faster. * - * The problem with windows systems where the [rename()](https://secure.php.net/manual/en/function.rename.php) + * The problem with windows systems where the [rename()](https://www.php.net/manual/en/function.rename.php) * function does not work with files that are opened by some process is described in a - * [comment by Martin Pelletier](https://secure.php.net/manual/en/function.rename.php#102274) in + * [comment by Martin Pelletier](https://www.php.net/manual/en/function.rename.php#102274) in * the PHP documentation. By setting rotateByCopy to `true` you can work * around this problem. */ diff --git a/framework/log/SyslogTarget.php b/framework/log/SyslogTarget.php index 6a9b0cf..84bde89 100644 --- a/framework/log/SyslogTarget.php +++ b/framework/log/SyslogTarget.php @@ -27,9 +27,9 @@ class SyslogTarget extends Target */ public $facility = LOG_USER; /** - * @var int openlog options. This is a bitfield passed as the `$option` parameter to [openlog()](https://secure.php.net/openlog). + * @var int openlog options. This is a bitfield passed as the `$option` parameter to [openlog()](https://www.php.net/openlog). * Defaults to `null` which means to use the default options `LOG_ODELAY | LOG_PID`. - * @see https://secure.php.net/openlog for available options. + * @see https://www.php.net/openlog for available options. * @since 2.0.11 */ public $options; diff --git a/framework/requirements/requirements.php b/framework/requirements/requirements.php index 29ab338..b6e3d80 100644 --- a/framework/requirements/requirements.php +++ b/framework/requirements/requirements.php @@ -47,7 +47,7 @@ return array( 'name' => 'MBString extension', 'mandatory' => true, 'condition' => extension_loaded('mbstring'), - 'by' => 'Multibyte string processing', + 'by' => 'Multibyte string processing', 'memo' => 'Required for multibyte encoding string processing.' ), array( @@ -61,7 +61,7 @@ return array( 'name' => 'Intl extension', 'mandatory' => false, 'condition' => $this->checkPhpExtensionVersion('intl', '1.0.2', '>='), - 'by' => 'Internationalization support', + 'by' => 'Internationalization support', 'memo' => 'PHP Intl extension 1.0.2 or higher is required when you want to use advanced parameters formatting in Yii::t(), non-latin languages with Inflector::slug(), IDN-feature of @@ -71,7 +71,7 @@ return array( 'name' => 'ICU version', 'mandatory' => false, 'condition' => defined('INTL_ICU_VERSION') && version_compare(INTL_ICU_VERSION, '49', '>='), - 'by' => 'Internationalization support', + 'by' => 'Internationalization support', 'memo' => 'ICU 49.0 or higher is required when you want to use # placeholder in plural rules (for example, plural in @@ -82,7 +82,7 @@ return array( 'name' => 'ICU Data version', 'mandatory' => false, 'condition' => defined('INTL_ICU_DATA_VERSION') && version_compare(INTL_ICU_DATA_VERSION, '49.1', '>='), - 'by' => 'Internationalization support', + 'by' => 'Internationalization support', 'memo' => 'ICU Data 49.1 or higher is required when you want to use # placeholder in plural rules (for example, plural in @@ -93,14 +93,14 @@ return array( 'name' => 'Fileinfo extension', 'mandatory' => false, 'condition' => extension_loaded('fileinfo'), - 'by' => 'File Information', + 'by' => 'File Information', 'memo' => 'Required for files upload to detect correct file mime-types.' ), array( 'name' => 'DOM extension', 'mandatory' => false, 'condition' => extension_loaded('dom'), - 'by' => 'Document Object Model', + 'by' => 'Document Object Model', 'memo' => 'Required for REST API to send XML responses via yii\web\XmlResponseFormatter.' ), array( diff --git a/framework/validators/DateValidator.php b/framework/validators/DateValidator.php index 24604cf..7d92010 100644 --- a/framework/validators/DateValidator.php +++ b/framework/validators/DateValidator.php @@ -60,7 +60,7 @@ class DateValidator extends Validator * This property influences the default value of [[format]] and also sets the correct behavior when [[format]] is one of the intl * short formats, `short`, `medium`, `long`, or `full`. * - * This is only effective when the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is installed. + * This is only effective when the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is installed. * * This property can be set to the following values: * @@ -76,7 +76,7 @@ class DateValidator extends Validator * This can be a date time pattern as described in the [ICU manual](http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax). * * Alternatively this can be a string prefixed with `php:` representing a format that can be recognized by the PHP Datetime class. - * Please refer to on supported formats. + * Please refer to on supported formats. * * If this property is not set, the default value will be obtained from `Yii::$app->formatter->dateFormat`, see [[\yii\i18n\Formatter::dateFormat]] for details. * Since version 2.0.8 the default value will be determined from different formats of the formatter class, @@ -95,8 +95,8 @@ class DateValidator extends Validator * ``` * * **Note:** the underlying date parsers being used vary dependent on the format. If you use the ICU format and - * the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is installed, the [IntlDateFormatter](https://secure.php.net/manual/en/intldateformatter.parse.php) - * is used to parse the input value. In all other cases the PHP [DateTime](https://secure.php.net/manual/en/datetime.createfromformat.php) class + * the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is installed, the [IntlDateFormatter](https://www.php.net/manual/en/intldateformatter.parse.php) + * is used to parse the input value. In all other cases the PHP [DateTime](https://www.php.net/manual/en/datetime.createfromformat.php) class * is used. The IntlDateFormatter has the advantage that it can parse international dates like `12. Mai 2015` or `12 мая 2014`, while the * PHP parser is limited to English only. The PHP parser however is more strict about the input format as it will not accept * `12.05.05` for the format `php:d.m.Y`, but the IntlDateFormatter will accept it for the format `dd.MM.yyyy`. @@ -105,16 +105,16 @@ class DateValidator extends Validator public $format; /** * @var string the locale ID that is used to localize the date parsing. - * This is only effective when the [PHP intl extension](https://secure.php.net/manual/en/book.intl.php) is installed. + * This is only effective when the [PHP intl extension](https://www.php.net/manual/en/book.intl.php) is installed. * If not set, the locale of the [[\yii\base\Application::formatter|formatter]] will be used. * See also [[\yii\i18n\Formatter::locale]]. */ public $locale; /** * @var string the timezone to use for parsing date and time values. - * This can be any value that may be passed to [date_default_timezone_set()](https://secure.php.net/manual/en/function.date-default-timezone-set.php) + * This can be any value that may be passed to [date_default_timezone_set()](https://www.php.net/manual/en/function.date-default-timezone-set.php) * e.g. `UTC`, `Europe/Berlin` or `America/Chicago`. - * Refer to the [php manual](https://secure.php.net/manual/en/timezones.php) for available timezones. + * Refer to the [php manual](https://www.php.net/manual/en/timezones.php) for available timezones. * If this property is not set, [[\yii\base\Application::timeZone]] will be used. */ public $timeZone; @@ -150,9 +150,9 @@ class DateValidator extends Validator /** * @var string the timezone to use when populating the [[timestampAttribute]] with [[timestampAttributeFormat]]. Defaults to `UTC`. * - * This can be any value that may be passed to [date_default_timezone_set()](https://secure.php.net/manual/en/function.date-default-timezone-set.php) + * This can be any value that may be passed to [date_default_timezone_set()](https://www.php.net/manual/en/function.date-default-timezone-set.php) * e.g. `UTC`, `Europe/Berlin` or `America/Chicago`. - * Refer to the [php manual](https://secure.php.net/manual/en/timezones.php) for available timezones. + * Refer to the [php manual](https://www.php.net/manual/en/timezones.php) for available timezones. * * If [[timestampAttributeFormat]] is not set, this property will be ignored. * @see timestampAttributeFormat diff --git a/framework/validators/FileValidator.php b/framework/validators/FileValidator.php index d67934f..7a7f5c5 100644 --- a/framework/validators/FileValidator.php +++ b/framework/validators/FileValidator.php @@ -62,8 +62,8 @@ class FileValidator extends Validator * Defaults to null, meaning no limit. * Note, the size limit is also affected by `upload_max_filesize` and `post_max_size` INI setting * and the 'MAX_FILE_SIZE' hidden field value. See [[getSizeLimit()]] for details. - * @see https://secure.php.net/manual/en/ini.core.php#ini.upload-max-filesize - * @see https://secure.php.net/post-max-size + * @see https://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize + * @see https://www.php.net/post-max-size * @see getSizeLimit * @see tooBig for the customized message for a file that is too big. */ @@ -77,7 +77,7 @@ class FileValidator extends Validator * > Note: The maximum number of files allowed to be uploaded simultaneously is * also limited with PHP directive `max_file_uploads`, which defaults to 20. * - * @see https://secure.php.net/manual/en/ini.core.php#ini.max-file-uploads + * @see https://www.php.net/manual/en/ini.core.php#ini.max-file-uploads * @see tooMany for the customized message when too many files are uploaded. */ public $maxFiles = 1; diff --git a/framework/web/AssetBundle.php b/framework/web/AssetBundle.php index d04ad40..ac554a8 100644 --- a/framework/web/AssetBundle.php +++ b/framework/web/AssetBundle.php @@ -16,7 +16,7 @@ use yii\helpers\Url; * AssetBundle represents a collection of asset files, such as CSS, JS, images. * * Each asset bundle has a unique name that globally identifies it among all asset bundles used in an application. - * The name is the [fully qualified class name](https://secure.php.net/manual/en/language.namespaces.rules.php) + * The name is the [fully qualified class name](https://www.php.net/manual/en/language.namespaces.rules.php) * of the class representing it. * * An asset bundle can depend on other asset bundles. When registering an asset bundle diff --git a/framework/web/CompositeUrlRule.php b/framework/web/CompositeUrlRule.php index d707c64..a9c9a27 100644 --- a/framework/web/CompositeUrlRule.php +++ b/framework/web/CompositeUrlRule.php @@ -133,7 +133,7 @@ abstract class CompositeUrlRule extends BaseObject implements UrlRuleInterface * @return null|int Status of the URL creation after the last [[createUrl()]] call. `null` if rule does not provide * info about create status. * @see $createStatus - * @see https://secure.php.net/manual/en/language.operators.bitwise.php + * @see https://www.php.net/manual/en/language.operators.bitwise.php * @since 2.0.12 */ public function getCreateUrlStatus() diff --git a/framework/web/DbSession.php b/framework/web/DbSession.php index d1ff105..d82484a 100644 --- a/framework/web/DbSession.php +++ b/framework/web/DbSession.php @@ -206,7 +206,7 @@ class DbSession extends MultiFieldSession } // exception must be caught in session write handler - // https://secure.php.net/manual/en/function.session-set-save-handler.php#refsect1-function.session-set-save-handler-notes + // https://www.php.net/manual/en/function.session-set-save-handler.php#refsect1-function.session-set-save-handler-notes try { // ensure backwards compatability (fixed #9438) if ($this->writeCallback && !$this->fields) { diff --git a/framework/web/ErrorHandler.php b/framework/web/ErrorHandler.php index 0d573ad..5bb28de 100644 --- a/framework/web/ErrorHandler.php +++ b/framework/web/ErrorHandler.php @@ -401,7 +401,7 @@ class ErrorHandler extends \yii\base\ErrorHandler 'http://lighttpd.net/' => ['lighttpd'], 'http://gwan.com/' => ['g-wan', 'gwan'], 'http://iis.net/' => ['iis', 'services'], - 'https://secure.php.net/manual/en/features.commandline.webserver.php' => ['development'], + 'https://www.php.net/manual/en/features.commandline.webserver.php' => ['development'], ]; if (isset($_SERVER['SERVER_SOFTWARE'])) { foreach ($serverUrls as $url => $keywords) { diff --git a/framework/web/JsonResponseFormatter.php b/framework/web/JsonResponseFormatter.php index 493d73f..2218ca0 100644 --- a/framework/web/JsonResponseFormatter.php +++ b/framework/web/JsonResponseFormatter.php @@ -68,7 +68,7 @@ class JsonResponseFormatter extends Component implements ResponseFormatterInterf public $useJsonp = false; /** * @var int the encoding options passed to [[Json::encode()]]. For more details please refer to - * . + * . * Default is `JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE`. * This property has no effect, when [[useJsonp]] is `true`. * @since 2.0.7 diff --git a/framework/web/Request.php b/framework/web/Request.php index ce10685..5868b4d 100644 --- a/framework/web/Request.php +++ b/framework/web/Request.php @@ -723,7 +723,7 @@ class Request extends \yii\base\Request * * By default this value is based on the user request information. This method will * return the value of `$_SERVER['HTTP_HOST']` if it is available or `$_SERVER['SERVER_NAME']` if not. - * You may want to check out the [PHP documentation](https://secure.php.net/manual/en/reserved.variables.server.php) + * You may want to check out the [PHP documentation](https://www.php.net/manual/en/reserved.variables.server.php) * for more information on these variables. * * You may explicitly specify it by setting the [[setHostInfo()|hostInfo]] property. diff --git a/framework/web/Session.php b/framework/web/Session.php index 626adb6..3c22c98 100644 --- a/framework/web/Session.php +++ b/framework/web/Session.php @@ -101,7 +101,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co /** * @var array parameter-value pairs to override default session cookie parameters that are used for session_set_cookie_params() function * Array may have the following possible keys: 'lifetime', 'path', 'domain', 'secure', 'httponly' - * @see https://secure.php.net/manual/en/function.session-set-cookie-params.php + * @see https://www.php.net/manual/en/function.session-set-cookie-params.php */ private $_cookieParams = ['httponly' => true]; /** @@ -294,7 +294,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co /** * Gets the session ID. - * This is a wrapper for [PHP session_id()](https://secure.php.net/manual/en/function.session-id.php). + * This is a wrapper for [PHP session_id()](https://www.php.net/manual/en/function.session-id.php). * @return string the current session ID */ public function getId() @@ -304,7 +304,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co /** * Sets the session ID. - * This is a wrapper for [PHP session_id()](https://secure.php.net/manual/en/function.session-id.php). + * This is a wrapper for [PHP session_id()](https://www.php.net/manual/en/function.session-id.php). * @param string $value the session ID for the current session */ public function setId($value) @@ -315,7 +315,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co /** * Updates the current session ID with a newly generated one. * - * Please refer to for more details. + * Please refer to for more details. * * This method has no effect when session is not [[getIsActive()|active]]. * Make sure to call [[open()]] before calling it. @@ -339,7 +339,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co /** * Gets the name of the current session. - * This is a wrapper for [PHP session_name()](https://secure.php.net/manual/en/function.session-name.php). + * This is a wrapper for [PHP session_name()](https://www.php.net/manual/en/function.session-name.php). * @return string the current session name */ public function getName() @@ -349,7 +349,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co /** * Sets the name for the current session. - * This is a wrapper for [PHP session_name()](https://secure.php.net/manual/en/function.session-name.php). + * This is a wrapper for [PHP session_name()](https://www.php.net/manual/en/function.session-name.php). * @param string $value the session name for the current session, must be an alphanumeric string. * It defaults to "PHPSESSID". */ @@ -362,7 +362,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co /** * Gets the current session save path. - * This is a wrapper for [PHP session_save_path()](https://secure.php.net/manual/en/function.session-save-path.php). + * This is a wrapper for [PHP session_save_path()](https://www.php.net/manual/en/function.session-save-path.php). * @return string the current session save path, defaults to '/tmp'. */ public function getSavePath() @@ -372,7 +372,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co /** * Sets the current session save path. - * This is a wrapper for [PHP session_save_path()](https://secure.php.net/manual/en/function.session-save-path.php). + * This is a wrapper for [PHP session_save_path()](https://www.php.net/manual/en/function.session-save-path.php). * @param string $value the current session save path. This can be either a directory name or a [path alias](guide:concept-aliases). * @throws InvalidArgumentException if the path is not a valid directory */ @@ -388,7 +388,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co /** * @return array the session cookie parameters. - * @see https://secure.php.net/manual/en/function.session-get-cookie-params.php + * @see https://www.php.net/manual/en/function.session-get-cookie-params.php */ public function getCookieParams() { @@ -411,7 +411,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co * See https://www.owasp.org/index.php/SameSite for more information about `sameSite`. * * @throws InvalidArgumentException if the parameters are incomplete. - * @see https://secure.php.net/manual/en/function.session-set-cookie-params.php + * @see https://www.php.net/manual/en/function.session-set-cookie-params.php */ public function setCookieParams(array $value) { @@ -422,7 +422,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co * Sets the session cookie parameters. * This method is called by [[open()]] when it is about to open the session. * @throws InvalidArgumentException if the parameters are incomplete. - * @see https://secure.php.net/manual/en/function.session-set-cookie-params.php + * @see https://www.php.net/manual/en/function.session-set-cookie-params.php */ private function setCookieParamsInternal() { diff --git a/framework/web/UploadedFile.php b/framework/web/UploadedFile.php index ed8fa11..a660970 100644 --- a/framework/web/UploadedFile.php +++ b/framework/web/UploadedFile.php @@ -54,7 +54,7 @@ class UploadedFile extends BaseObject public $size; /** * @var int an error code describing the status of this file uploading. - * @see https://secure.php.net/manual/en/features.file-upload.errors.php + * @see https://www.php.net/manual/en/features.file-upload.errors.php */ public $error; diff --git a/tests/data/base/ArrayAccessObject.php b/tests/data/base/ArrayAccessObject.php index 79a66de..bf62ef2 100644 --- a/tests/data/base/ArrayAccessObject.php +++ b/tests/data/base/ArrayAccessObject.php @@ -19,7 +19,7 @@ class ArrayAccessObject extends TraversableObject implements \ArrayAccess /** * Whether a offset exists * - * @link https://secure.php.net/manual/en/arrayaccess.offsetexists.php + * @link https://www.php.net/manual/en/arrayaccess.offsetexists.php * @param mixed $offset

* An offset to check for. *

@@ -37,7 +37,7 @@ class ArrayAccessObject extends TraversableObject implements \ArrayAccess /** * Offset to retrieve * - * @link https://secure.php.net/manual/en/arrayaccess.offsetget.php + * @link https://www.php.net/manual/en/arrayaccess.offsetget.php * @param mixed $offset

* The offset to retrieve. *

@@ -52,7 +52,7 @@ class ArrayAccessObject extends TraversableObject implements \ArrayAccess /** * Offset to set * - * @link https://secure.php.net/manual/en/arrayaccess.offsetset.php + * @link https://www.php.net/manual/en/arrayaccess.offsetset.php * @param mixed $offset

* The offset to assign the value to. *

@@ -70,7 +70,7 @@ class ArrayAccessObject extends TraversableObject implements \ArrayAccess /** * Offset to unset * - * @link https://secure.php.net/manual/en/arrayaccess.offsetunset.php + * @link https://www.php.net/manual/en/arrayaccess.offsetunset.php * @param mixed $offset

* The offset to unset. *

diff --git a/tests/data/helpers/CustomDebugInfo.php b/tests/data/helpers/CustomDebugInfo.php index 67ff276..94a01db 100644 --- a/tests/data/helpers/CustomDebugInfo.php +++ b/tests/data/helpers/CustomDebugInfo.php @@ -18,7 +18,7 @@ class CustomDebugInfo public $unitPrice; /** - * @see https://secure.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.debuginfo + * @see https://www.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.debuginfo * * @return array */ diff --git a/tests/framework/helpers/StringHelperTest.php b/tests/framework/helpers/StringHelperTest.php index 041f831..fa0fd3e 100644 --- a/tests/framework/helpers/StringHelperTest.php +++ b/tests/framework/helpers/StringHelperTest.php @@ -104,7 +104,7 @@ class StringHelperTest extends TestCase $this->assertEquals('file', StringHelper::basename('/path/to/filete\st', 'te\st')); $this->assertEquals('st', StringHelper::basename('/path/to/filete\st', 'te/st')); - // https://secure.php.net/manual/en/function.basename.php#72254 + // https://www.php.net/manual/en/function.basename.php#72254 $this->assertEquals('foo', StringHelper::basename('/bar/foo/')); $this->assertEquals('foo', StringHelper::basename('\\bar\\foo\\')); }