comanage-dev - [comanage-dev] Validation for CO People
Subject: COmanage Developers List
List archive
- From: Marie Huynh <>
- To: Benn Oshrin <>, comanage-dev <>
- Subject: [comanage-dev] Validation for CO People
- Date: Thu, 9 May 2013 13:32:47 -0700
- Authentication-results: sfpop-ironport01.merit.edu; dkim=pass (signature verified)
I was looking through the wiki and saw status defined as:
- A: Active
- D: Deleted
- I: Invited
- P: Pending Invite
- X: Invite Declined
- S: Suspended
In enum:
class StatusEnum
{
const Active = 'A';
const Approved = 'Y';
const Confirmed = 'C';
const Deleted = 'D';
const Denied = 'N';
const Invited = 'I';
const Pending = 'P';
const PendingApproval = 'PA';
const PendingConfirmation = 'PC';
const Suspended = 'S';
const Declined = 'X';
...
$status_t = array(
'A' => 'Active',
'D' => 'Deleted',
'I' => 'Invited',
'N' => 'Denied',
'P' => 'Pending',
'PA' => 'PendingApproval',
'S' => 'Suspended',
'X' => 'Declined',
'Y' => 'Approved'
);
$status_ti = array(
'Active' => 'A',
'Deleted' => 'D',
'Invited' => 'I',
'Denied' => 'N',
'Pending' => 'P',
'PendingApproval' => 'PA',
'Suspended' => 'S',
'Declined' => 'X',
'Approved' => 'Y'
);
In the model though, it's validated with:
'status' => array(
'rule' => array('inList', array(StatusEnum::Active,
StatusEnum::Approved,
StatusEnum::Declined,
StatusEnum::Deleted,
StatusEnum::Denied,
StatusEnum::Invited,
StatusEnum::Pending,
StatusEnum::PendingApproval,
StatusEnum::PendingConfirmation,
StatusEnum::Suspended)),
Which is accurate?
Marie
- [comanage-dev] Validation for CO People, Marie Huynh, 05/09/2013
- [comanage-dev] Re: Validation for CO People, Benn Oshrin, 05/09/2013
Archive powered by MHonArc 2.6.16.