本文整理汇总了PHP中Item::getDefaultMetadata方法的典型用法代码示例。如果您正苦于以下问题:PHP Item::getDefaultMetadata方法的具体用法?PHP Item::getDefaultMetadata怎么用?PHP Item::getDefaultMetadata使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Item
的用法示例。
在下文中一共展示了Item::getDefaultMetadata方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getDefaultMetadata
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: getDefaultMetadata
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: getDefaultMetadata
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: getDefaultMetadata
/**
* @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: getDefaultMetadata
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: getDefaultMetadata
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: getDefaultMetadata
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: getDefaultMetadata
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: getDefaultMetadata
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: getDefaultMetadata
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: getDefaultMetadata
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: getDefaultMetadata
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: getDefaultMetadata
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: getDefaultMetadata
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: getDefaultMetadata
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;
}