コード例 #1
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('relations' => array('policies' => array(static::HAS_MANY, 'Policy', static::OWNED), 'rights' => array(static::HAS_MANY, 'Right', static::OWNED)), 'foreignRelations' => array('Permission'), 'indexes' => array('item_id' => array('members' => array('item_id'), 'unique' => false)));
     return $metadata;
 }
コード例 #2
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('type'), 'rules' => array(array('type', 'required'), array('type', 'type', 'type' => 'string'), array('type', 'length', 'min' => 1, 'max' => 64)), 'defaultSortAttribute' => 'createdDateTime');
     return $metadata;
 }
コード例 #3
0
ファイル: Import.php プロジェクト: youprofit/Zurmo
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('serializedData'), 'rules' => array(array('serializedData', 'required'), array('serializedData', 'type', 'type' => 'string')), 'noAudit' => array('serializedData'));
     return $metadata;
 }
コード例 #4
0
ファイル: ProductCategory.php プロジェクト: youprofit/Zurmo
 /**
  * @return array
  */
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('name'), 'relations' => array('productTemplates' => array(RedBeanModel::MANY_MANY, 'ProductTemplate'), 'products' => array(RedBeanModel::MANY_MANY, 'Product'), 'productCatalogs' => array(RedBeanModel::MANY_MANY, 'ProductCatalog'), 'productCategory' => array(RedBeanModel::HAS_MANY_BELONGS_TO, 'ProductCategory'), 'productCategories' => array(RedBeanModel::HAS_MANY, 'ProductCategory')), 'rules' => array(array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'min' => 3, 'max' => 64)), 'elements' => array(), 'customFields' => array(), 'defaultSortAttribute' => 'name', 'noAudit' => array());
     return $metadata;
 }
コード例 #5
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('member'), 'relations' => array('files' => array(RedBeanModel::HAS_MANY, 'FileModel', RedBeanModel::OWNED)), 'rules' => array(array('member', 'type', 'type' => 'string')));
     return $metadata;
 }
コード例 #6
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('member'), 'relations' => array('files' => array(static::HAS_MANY, 'FileModel', static::OWNED, static::LINK_TYPE_POLYMORPHIC, 'relatedModel')), 'rules' => array(array('member', 'type', 'type' => 'string')));
     return $metadata;
 }
コード例 #7
0
ファイル: Role.php プロジェクト: RamaKavanan/InitialVersion
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('name'), 'relations' => array('role' => array(static::HAS_MANY_BELONGS_TO, 'Role'), 'roles' => array(static::HAS_MANY, 'Role'), 'users' => array(static::HAS_MANY, 'User')), 'rules' => array(array('name', 'required'), array('name', 'unique'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'min' => 1, 'max' => 64)), 'defaultSortAttribute' => 'name');
     return $metadata;
 }
コード例 #8
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('latestDateTime', 'type', 'quantity', 'latestSourceIP'), 'rules' => array(array('latestDateTime', 'type', 'type' => 'datetime'), array('type', 'required'), array('type', 'type', 'type' => 'integer'), array('type', 'numerical'), array('quantity', 'required'), array('quantity', 'type', 'type' => 'integer'), array('quantity', 'numerical', 'integerOnly' => true), array('latestSourceIP', 'type', 'type' => 'string')), 'relations' => array('person' => array(static::HAS_ONE, 'Person', static::NOT_OWNED), 'emailMessageUrl' => array(static::HAS_ONE, 'EmailMessageUrl')), 'elements' => array('latestDateTime' => 'DateTime'), 'defaultSortAttribute' => 'latestDateTime');
     return $metadata;
 }
コード例 #9
0
ファイル: Autoresponder.php プロジェクト: youprofit/Zurmo
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('subject', 'htmlContent', 'textContent', 'fromOperationDurationInterval', 'fromOperationDurationType', 'operationType', 'enableTracking'), 'rules' => array(array('subject', 'required'), array('subject', 'type', 'type' => 'string'), array('subject', 'length', 'min' => 3, 'max' => 64), array('htmlContent', 'type', 'type' => 'string'), array('textContent', 'type', 'type' => 'string'), array('htmlContent', 'AtLeastOneContentAreaRequiredValidator'), array('textContent', 'AtLeastOneContentAreaRequiredValidator'), array('htmlContent', 'AutoresponderMergeTagsValidator', 'except' => 'autoBuildDatabase'), array('textContent', 'AutoresponderMergeTagsValidator', 'except' => 'autoBuildDatabase'), array('fromOperationDurationInterval', 'type', 'type' => 'integer'), array('fromOperationDurationInterval', 'numerical', 'min' => 0), array('fromOperationDurationInterval', 'required'), array('fromOperationDurationType', 'type', 'type' => 'string'), array('fromOperationDurationType', 'required'), array('operationType', 'required'), array('operationType', 'type', 'type' => 'integer'), array('operationType', 'numerical'), array('enableTracking', 'boolean'), array('enableTracking', 'default', 'value' => false)), 'relations' => array('autoresponderItems' => array(RedBeanModel::HAS_MANY, 'AutoresponderItem'), 'marketingList' => array(RedBeanModel::HAS_ONE, 'MarketingList', RedBeanModel::NOT_OWNED), 'files' => array(RedBeanModel::HAS_MANY, 'FileModel', RedBeanModel::OWNED, RedBeanModel::LINK_TYPE_POLYMORPHIC, 'relatedModel')), 'elements' => array('htmlContent' => 'TextArea', 'textContent' => 'TextArea', 'enableTracking' => 'CheckBox'), 'defaultSortAttribute' => 'fromOperationDurationInterval');
     return $metadata;
 }
コード例 #10
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('value'), 'relations' => array('person' => array(static::HAS_ONE, 'Item', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'person')), 'rules' => array(array('value', 'type', 'type' => 'integer'), array('value', 'default', 'value' => 1), array('value', 'numerical', 'min' => 0), array('value', 'required'), array('person', 'required')), 'elements' => array('person' => 'Person'), 'defaultSortAttribute' => 'value', 'noAudit' => array('value', 'person'));
     return $metadata;
 }
コード例 #11
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('name', 'Assembly_Frequency', 'Assembly_Product_Code', 'Assembly_Quantity', 'Category', 'Category_GPM', 'Cloned_Product', 'Frequency', 'minFrequency', 'minQuantity', 'Old_Id', 'Old_Id_name', 'Product_Code', 'Quantity', 'Total_MHR'), 'relations' => array('agreement' => array(static::HAS_ONE, 'Agreement'), 'Assembly_Product' => array(static::HAS_ONE, 'Costbook'), 'Product' => array(static::HAS_ONE, 'Costbook')), 'rules' => array(array('name', 'required'), array('agreement', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 100), array('Assembly_Frequency', 'length', 'max' => 12), array('Assembly_Frequency', 'numerical', 'precision' => 2), array('Assembly_Frequency', 'type', 'type' => 'float'), array('Assembly_Product_Code', 'type', 'type' => 'string'), array('Assembly_Quantity', 'length', 'max' => 12), array('Assembly_Quantity', 'numerical', 'precision' => 2), array('Assembly_Quantity', 'type', 'type' => 'float'), array('Category', 'type', 'type' => 'string'), array('Category_GPM', 'length', 'max' => 12), array('Category_GPM', 'numerical', 'precision' => 2), array('Category_GPM', 'type', 'type' => 'float'), array('Cloned_Product', 'type', 'type' => 'boolean'), array('Frequency', 'length', 'max' => 12), array('Frequency', 'numerical', 'precision' => 2), array('Frequency', 'type', 'type' => 'float'), array('minFrequency', 'length', 'max' => 12), array('minFrequency', 'numerical', 'precision' => 2), array('minFrequency', 'type', 'type' => 'float'), array('minQuantity', 'length', 'max' => 12), array('minQuantity', 'numerical', 'precision' => 2), array('minQuantity', 'type', 'type' => 'float'), array('Old_Id', 'type', 'type' => 'string'), array('Old_Id_name', 'type', 'type' => 'string'), array('Product_Code', 'type', 'type' => 'string'), array('Quantity', 'length', 'max' => 18), array('Quantity', 'numerical', 'precision' => 2), array('Quantity', 'type', 'type' => 'float'), array('Total_MHR', 'length', 'max' => 18), array('Total_MHR', 'numerical', 'precision' => 2), array('Total_MHR', 'type', 'type' => 'float')), 'elements' => array('agreement' => 'Agreement', 'Assembly_Product' => 'Costbook', 'Product' => 'Costbook', 'name' => 'Text', 'Assembly_Frequency' => 'Decimal', 'Assembly_Product_Code' => 'Text', 'Assembly_Quantity' => 'Decimal', 'Category' => 'Text', 'Category_GPM' => 'Decimal', 'Cloned_Product' => 'CheckBox', 'Frequency' => 'Decimal', 'minFrequency' => 'Decimal', 'minQuantity' => 'Decimal', 'Old_Id' => 'Text', 'Old_Id_name' => 'Text', 'Product_Code' => 'Text', 'Quantity' => 'Decimal', 'Total_MHR' => 'Decimal'), 'defaultSortAttribute' => 'name', 'noAudit' => array());
     return $metadata;
 }
コード例 #12
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('name'), 'rules' => array(array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 32)));
     return $metadata;
 }
コード例 #13
0
ファイル: AuditTestItem.php プロジェクト: youprofit/Zurmo
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('dateTime', 'date', 'float', 'integer', 'time'), 'rules' => array(array('dateTime', 'type', 'type' => 'datetime'), array('date', 'type', 'type' => 'date'), array('float', 'type', 'type' => 'float'), array('integer', 'type', 'type' => 'integer'), array('time', 'type', 'type' => 'time')));
     return $metadata;
 }
コード例 #14
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('name'), 'relations' => array('specific' => array(static::HAS_ONE, 'ExtendsOwnedModel', static::OWNED, static::LINK_TYPE_SPECIFIC, 'specific')), 'rules' => array(array('name', 'type', 'type' => 'string')));
     return $metadata;
 }
コード例 #15
0
ファイル: GamePoint.php プロジェクト: youprofit/Zurmo
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('type', 'value'), 'relations' => array('person' => array(RedBeanModel::HAS_ONE, 'Item', RedBeanModel::NOT_OWNED, RedBeanModel::LINK_TYPE_SPECIFIC, 'person'), 'transactions' => array(RedBeanModel::HAS_MANY, 'GamePointTransaction', RedBeanModel::OWNED)), 'rules' => array(array('type', 'required'), array('type', 'type', 'type' => 'string'), array('type', 'length', 'min' => 3, 'max' => 64), array('value', 'type', 'type' => 'integer'), array('value', 'numerical', 'min' => 1), array('value', 'required'), array('person', 'required')), 'elements' => array('person' => 'Person'), 'defaultSortAttribute' => 'type', 'noAudit' => array('type', 'value', 'person'));
     return $metadata;
 }
コード例 #16
0
ファイル: ProductTemplate.php プロジェクト: youprofit/Zurmo
 /**
  * @return array
  */
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('name', 'description', 'priceFrequency', 'status', 'type'), 'relations' => array('products' => array(RedBeanModel::HAS_MANY, 'Product'), 'sellPriceFormula' => array(RedBeanModel::HAS_ONE, 'SellPriceFormula', RedBeanModel::OWNED), 'productCategories' => array(RedBeanModel::MANY_MANY, 'ProductCategory'), 'cost' => array(RedBeanModel::HAS_ONE, 'CurrencyValue', RedBeanModel::OWNED, RedBeanModel::LINK_TYPE_SPECIFIC, 'cost'), 'listPrice' => array(RedBeanModel::HAS_ONE, 'CurrencyValue', RedBeanModel::OWNED, RedBeanModel::LINK_TYPE_SPECIFIC, 'listPrice'), 'sellPrice' => array(RedBeanModel::HAS_ONE, 'CurrencyValue', RedBeanModel::OWNED, RedBeanModel::LINK_TYPE_SPECIFIC, 'sellPrice')), 'rules' => array(array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'min' => 3, 'max' => 255), array('description', 'type', 'type' => 'string'), array('status', 'required'), array('type', 'required'), array('status', 'type', 'type' => 'integer'), array('type', 'type', 'type' => 'integer'), array('priceFrequency', 'type', 'type' => 'integer'), array('cost', 'required'), array('listPrice', 'required'), array('sellPrice', 'required'), array('sellPriceFormula', 'required'), array('priceFrequency', 'required')), 'elements' => array('product' => 'Product', 'description' => 'TextArea', 'cost' => 'CurrencyValue', 'listPrice' => 'CurrencyValue', 'sellPrice' => 'CurrencyValue', 'type' => 'ProductTemplateTypeDropDown', 'status' => 'ProductTemplateStatusDropDown', 'priceFrequency' => 'ProductTemplatePriceFrequencyDropDown', 'sellPriceFormula' => 'SellPriceFormulaInformation'), 'customFields' => array(), 'defaultSortAttribute' => 'name', 'noAudit' => array(), 'nonConfigurableAttributes' => array('sellPriceFormula', 'priceFrequency', 'type'));
     return $metadata;
 }
コード例 #17
0
ファイル: FilteredList.php プロジェクト: youprofit/Zurmo
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('filterByCreatedUser', 'name', 'serializedData'), 'rules' => array(array('filterByCreatedUser', 'boolean'), array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 64), array('serializedData', 'required'), array('serializedData', 'type', 'type' => 'string')));
     return $metadata;
 }
コード例 #18
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('name', 'description', 'burdonCost', 'laborCost'), 'rules' => array(array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 100), array('description', 'type', 'type' => 'string'), array('burdonCost', 'required'), array('laborCost', 'required'), array('burdonCost', 'length', 'max' => 18), array('burdonCost', 'numerical', 'precision' => 2), array('burdonCost', 'type', 'type' => 'float'), array('laborCost', 'length', 'max' => 18), array('laborCost', 'numerical', 'precision' => 2), array('laborCost', 'type', 'type' => 'float')), 'elements' => array('description' => 'TextArea', 'burdonCost' => 'Decimal', 'laborCost' => 'Decimal'), 'defaultSortAttribute' => 'name', 'noAudit' => array());
     return $metadata;
 }
コード例 #19
0
ファイル: EmailFolder.php プロジェクト: youprofit/Zurmo
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('name', 'type'), 'relations' => array('emailBox' => array(RedBeanModel::HAS_ONE, 'EmailBox')), 'rules' => array(array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'min' => 3, 'max' => 64), array('type', 'type', 'type' => 'string'), array('type', 'length', 'min' => 3, 'max' => 20), array('emailBox', 'required')));
     return $metadata;
 }
コード例 #20
0
 /**
  * @return array
  */
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('modelClassName', 'processDateTime'), 'relations' => array('modelItem' => array(static::HAS_ONE, 'Item', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'modelItem'), 'savedWorkflow' => array(static::HAS_ONE, 'SavedWorkflow', static::NOT_OWNED)), 'rules' => array(array('modelClassName', 'required'), array('modelClassName', 'type', 'type' => 'string'), array('modelClassName', 'length', 'max' => 64), array('modelItem', 'required'), array('processDateTime', 'required'), array('processDateTime', 'type', 'type' => 'datetime'), array('savedWorkflow', 'required')), 'elements' => array('processDateTime' => 'DateTime'), 'defaultSortAttribute' => 'processDateTime');
     return $metadata;
 }
コード例 #21
0
ファイル: JobLog.php プロジェクト: maruthisivaprasad/zurmo
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('endDateTime', 'isProcessed', 'message', 'startDateTime', 'status', 'type'), 'rules' => array(array('endDateTime', 'required'), array('endDateTime', 'type', 'type' => 'datetime'), array('isProcessed', 'boolean'), array('isProcessed', 'validateIsProcessedIsSet'), array('message', 'type', 'type' => 'string'), array('startDateTime', 'required'), array('status', 'required'), array('status', 'type', 'type' => 'integer'), array('startDateTime', 'type', 'type' => 'datetime'), array('type', 'required'), array('type', 'type', 'type' => 'string'), array('type', 'length', 'min' => 1, 'max' => 64)), 'defaultSortAttribute' => 'type', 'elements' => array('description' => 'TextArea', 'endDateTime' => 'DateTime', 'startDateTime' => 'DateTime'));
     return $metadata;
 }
コード例 #22
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('amount', 'floatStandard'), 'relations' => array('amount' => array(static::HAS_ONE, 'CurrencyValue', static::OWNED, static::LINK_TYPE_SPECIFIC, 'amount')), 'rules' => array(array('amount', 'required'), array('floatStandard', 'type', 'type' => 'float')), 'elements' => array('amount' => 'CurrencyValue'));
     return $metadata;
 }
コード例 #23
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('primary'), 'rules' => array(array('primary', 'boolean'), array('primary', 'readOnly'), array('primary', 'default', 'value' => false), array('account', 'required'), array('contact', 'required')), 'relations' => array('role' => array(static::HAS_ONE, 'OwnedCustomField', static::OWNED, static::LINK_TYPE_SPECIFIC, 'role'), 'account' => array(static::HAS_ONE, 'Account', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'accountAffiliation'), 'contact' => array(static::HAS_ONE, 'Contact', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'contactAffiliation')), 'elements' => array(), 'elements' => array('account' => 'Account', 'contact' => 'Contact', 'primary' => 'CheckBox'), 'customFields' => array('role' => 'AccountContactAffiliationRoles'), 'noAudit' => array('primary', 'account', 'contact'));
     return $metadata;
 }
コード例 #24
0
ファイル: SecurableItem.php プロジェクト: sandeep1027/zurmo_
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('relations' => array('permissions' => array(RedBeanModel::HAS_MANY, 'Permission', RedBeanModel::OWNED)));
     return $metadata;
 }
コード例 #25
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('type', 'ownerHasReadLatest'), 'relations' => array('notificationMessage' => array(static::HAS_ONE, 'NotificationMessage', static::NOT_OWNED), 'owner' => array(static::HAS_ONE, 'User', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'owner')), 'rules' => array(array('owner', 'required'), array('type', 'required'), array('type', 'type', 'type' => 'string'), array('type', 'length', 'min' => 1, 'max' => 64), array('ownerHasReadLatest', 'boolean')), 'elements' => array('owner' => 'User'), 'defaultSortAttribute' => null, 'noAudit' => array('owner', 'type', 'ownerHasReadLatest'));
     return $metadata;
 }
コード例 #26
0
 /**
  * @return array
  */
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('serializedData', 'status', 'message', 'hashIndex'), 'relations' => array('contact' => array(static::HAS_ONE, 'Contact'), 'contactWebForm' => array(static::HAS_ONE, 'ContactWebForm', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'entries')), 'rules' => array(array('serializedData', 'type', 'type' => 'string'), array('status', 'type', 'type' => 'integer'), array('message', 'type', 'type' => 'string'), array('hashIndex', 'type', 'type' => 'string')), 'elements' => array(), 'defaultSortAttribute' => 'status', 'noAudit' => array('serializedData', 'hashIndex'));
     return $metadata;
 }
コード例 #27
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('name', 'size', 'type'), 'relations' => array('fileContent' => array(static::HAS_ONE, 'FileContent', static::NOT_OWNED)), 'rules' => array(array('fileContent', 'required'), array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'min' => 1, 'max' => 100), array('size', 'required'), array('size', 'type', 'type' => 'integer'), array('type', 'required'), array('type', 'type', 'type' => 'string'), array('type', 'length', 'min' => 1, 'max' => 128), array('type', 'fileTypeValidator')), 'defaultSortAttribute' => 'name', 'noAudit' => array('fileContent'));
     return $metadata;
 }
コード例 #28
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('relations' => array('industry' => array(static::HAS_ONE, 'OwnedCustomField', static::OWNED, static::LINK_TYPE_SPECIFIC, 'industry'), 'multipleIndustries' => array(static::HAS_ONE, 'OwnedMultipleValuesCustomField', static::OWNED, static::LINK_TYPE_SPECIFIC, 'multipleIndustries'), 'multipleSomethings' => array(static::HAS_ONE, 'OwnedMultipleValuesCustomField', static::OWNED, static::LINK_TYPE_SPECIFIC, 'multipleSomethings')), 'customFields' => array('industry' => 'Industries', 'multipleIndustries' => 'MultipleIndustries', 'multipleSomethings' => 'MultipleSomethings'));
     return $metadata;
 }
コード例 #29
0
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('htmlContent', 'textContent'), 'relations' => array('notifications' => array(RedBeanModel::HAS_MANY, 'Notification')), 'rules' => array(array('htmlContent', 'type', 'type' => 'string'), array('textContent', 'type', 'type' => 'string')), 'elements' => array('htmlContent' => 'TextArea', 'textContent' => 'TextArea'), 'defaultSortAttribute' => null, 'noAudit' => array('htmlContent', 'textContent'));
     return $metadata;
 }
コード例 #30
0
ファイル: Animal.php プロジェクト: sandeep1027/zurmo_
 public static function getDefaultMetadata()
 {
     $metadata = parent::getDefaultMetadata();
     $metadata[__CLASS__] = array('members' => array('name', 'description', 'checkBox', 'date', 'dateTime', 'decimal', 'integer', 'phone', 'text', 'textArea', 'url'), 'relations' => array('type' => array(RedBeanModel::HAS_ONE, 'OwnedCustomField', RedBeanModel::OWNED), 'currency' => array(RedBeanModel::HAS_ONE, 'CurrencyValue', RedBeanModel::OWNED), 'pickList' => array(RedBeanModel::HAS_ONE, 'OwnedCustomField', RedBeanModel::OWNED), 'radioPickList' => array(RedBeanModel::HAS_ONE, 'OwnedCustomField', RedBeanModel::OWNED)), 'derivedRelationsViaCastedUpModel' => array('meetings' => array(RedBeanModel::MANY_MANY, 'Meeting', 'activityItems'), 'notes' => array(RedBeanModel::MANY_MANY, 'Note', 'activityItems'), 'tasks' => array(RedBeanModel::MANY_MANY, 'Task', 'activityItems')), 'rules' => array(array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 100), array('description', 'type', 'type' => 'string'), array('checkBox', 'type', 'type' => 'boolean'), array('checkBox', 'default', 'value' => 1), array('date', 'type', 'type' => 'date'), array('date', 'dateTimeDefault', 'value' => 2), array('dateTime', 'type', 'type' => 'datetime'), array('dateTime', 'dateTimeDefault', 'value' => 2), array('decimal', 'default', 'value' => 1), array('decimal', 'length', 'max' => 18), array('decimal', 'numerical', 'precision' => 2), array('decimal', 'type', 'type' => 'float'), array('integer', 'length', 'max' => 11), array('integer', 'numerical', 'max' => 9999, 'min' => 0), array('integer', 'type', 'type' => 'integer'), array('pickList', 'default', 'value' => 'Value one'), array('phone', 'length', 'max' => 20), array('phone', 'type', 'type' => 'string'), array('text', 'length', 'max' => 255), array('text', 'type', 'type' => 'string'), array('textArea', 'type', 'type' => 'string'), array('url', 'length', 'max' => 255), array('url', 'url')), 'elements' => array('description' => 'TextArea', 'checkBox' => 'CheckBox', 'currency' => 'CurrencyValue', 'date' => 'Date', 'dateTime' => 'DateTime', 'decimal' => 'Decimal', 'integer' => 'Integer', 'pickList' => 'DropDown', 'phone' => 'Phone', 'radioPickList' => 'RadioDropDown', 'text' => 'Text', 'textArea' => 'TextArea', 'url' => 'Url'), 'customFields' => array('type' => 'AnimalType', 'pickList' => 'AnimalPickList', 'radioPickList' => 'AnimalRadioPickList'), 'defaultSortAttribute' => 'name', 'noAudit' => array());
     return $metadata;
 }