프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$p_master | |||
$u_action |
메소드 | 설명 | |
---|---|---|
acp_users ( &$p_master ) | ||
main ( $id, $mode ) | ||
optionget ( array &$user_row, integer $key, integer $data = false ) : boolean | Get option bit field from user options in a user row array. | |
optionset ( array &$user_row, integer $key, boolean $value, integer $data = false ) : integer | boolean | Set option bit field for user options in a user row array. |
public optionget ( array &$user_row, integer $key, integer $data = false ) : boolean | ||
$user_row | array | Row from the users table. |
$key | integer | option key, as defined in $user->keyoptions property. |
$data | integer | bit field value to use, or false to use $user_row['user_options'] |
리턴 | boolean | true if the option is set in the bit field, false otherwise |
public optionset ( array &$user_row, integer $key, boolean $value, integer $data = false ) : integer | boolean | ||
$user_row | array | Row from the users table. |
$key | integer | Option key, as defined in $user->keyoptions property. |
$value | boolean | True to set the option, false to clear the option. |
$data | integer | Current bit field value, or false to use $user_row['user_options'] |
리턴 | integer | boolean | If $data is false, the bit field is modified and written back to $user_row['user_options'], and return value is true if the bit field changed and false otherwise. If $data is not false, the new bitfield value is returned. |