REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 2.45 KB
Close
/home/jambtst2015/www/framework/web/auth/CAuthAssignment.php
Text
Base64
<?php /** * CAuthAssignment class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright 2008-2013 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CAuthAssignment represents an assignment of a role to a user. * It includes additional assignment information such as {@link bizRule} and {@link data}. * Do not create a CAuthAssignment instance using the 'new' operator. * Instead, call {@link IAuthManager::assign}. * * @property mixed $userId User ID (see {@link IWebUser::getId}). * @property string $itemName The authorization item name. * @property string $bizRule The business rule associated with this assignment. * @property mixed $data Additional data for this assignment. * * @author Qiang Xue <qiang.xue@gmail.com> * @package system.web.auth * @since 1.0 */ class CAuthAssignment extends CComponent { private $_auth; private $_itemName; private $_userId; private $_bizRule; private $_data; /** * Constructor. * @param IAuthManager $auth the authorization manager * @param string $itemName authorization item name * @param mixed $userId user ID (see {@link IWebUser::getId}) * @param string $bizRule the business rule associated with this assignment * @param mixed $data additional data for this assignment */ public function __construct($auth,$itemName,$userId,$bizRule=null,$data=null) { $this->_auth=$auth; $this->_itemName=$itemName; $this->_userId=$userId; $this->_bizRule=$bizRule; $this->_data=$data; } /** * @return mixed user ID (see {@link IWebUser::getId}) */ public function getUserId() { return $this->_userId; } /** * @return string the authorization item name */ public function getItemName() { return $this->_itemName; } /** * @return string the business rule associated with this assignment */ public function getBizRule() { return $this->_bizRule; } /** * @param string $value the business rule associated with this assignment */ public function setBizRule($value) { if($this->_bizRule!==$value) { $this->_bizRule=$value; $this->_auth->saveAuthAssignment($this); } } /** * @return mixed additional data for this assignment */ public function getData() { return $this->_data; } /** * @param mixed $value additional data for this assignment */ public function setData($value) { if($this->_data!==$value) { $this->_data=$value; $this->_auth->saveAuthAssignment($this); } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 15
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
CAccessControlFilter.php
12.00 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CAuthAssignment.php
2.45 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CAuthItem.php
7.41 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CAuthManager.php
6.49 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CBaseUserIdentity.php
3.93 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CDbAuthManager.php
18.90 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CPhpAuthManager.php
15.96 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CUserIdentity.php
2.20 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CWebUser.php
27.35 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error_log
34.28 KB
lrw-r--r--
2025-11-04 15:17:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
schema-mssql.sql
1.24 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
schema-mysql.sql
1.28 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
schema-oci.sql
1.24 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
schema-pgsql.sql
1.24 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
schema-sqlite.sql
1.24 KB
lrw-r--r--
2024-11-22 17:53:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).