previousFile_HtAccess::getRequire() (Previous) (Next) File_HtAccess::setAuthUserFile()next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File_HtAccess::setProperties()

File_HtAccess::setProperties() – オブジェクトプロパティの値を設定する

Synopsis

void File_HtAccess::setProperties ( array $params )

Description

パラメータとして渡されたハッシュに定義された値を オブジェクトプロパティの値に設定します。 コンストラクタ にプロパティの値を渡す代わりに、このメソッドを使用することができます。

Parameter

  • $params['authname'] - AuthName の値

  • $params['authtype'] - AuthType の値

  • $params['authuserfile'] - AuthUserFile の値

  • $params['authgroupfile'] - AuthGroupFile の値

  • $params['require'] - Require の値

  • $params['additional'] - 追加情報

Return value

void

Note

This function can not be called statically.

Example

File_HtAccess::setProperties() の使用

<?php
require_once('File/HtAccess.php');

/* 全ての有効なユーザーにリソースにアクセスさせる */
$fh = new File_HtAccess('.htaccess');

$params['authname']      = 'Private';
$params['authtype']      = 'Basic';
$params['authuserfile']  = '/path/to/.htpasswd';
$params['authgroupfile'] = '/path/to/.htgroup';
$params['require']       = array('group''admins');

$fh->setProperties($params);

?>
previousFile_HtAccess::getRequire() (Previous) (Next) File_HtAccess::setAuthUserFile()next

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.