本文整理汇总了PHP中H::getDefaultMetadata方法的典型用法代码示例。如果您正苦于以下问题:PHP H::getDefaultMetadata方法的具体用法?PHP H::getDefaultMetadata怎么用?PHP H::getDefaultMetadata使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类H
的用法示例。
在下文中一共展示了H::getDefaultMetadata方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('lMember'), 'relations' => array('is' => array(RedBeanModel::MANY_MANY, 'I')), 'rules' => array(array('lMember', 'safe')));
return $metadata;
}
示例2: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('jMember'), 'relations' => array('i' => array(static::HAS_ONE_BELONGS_TO, 'I')), 'rules' => array(array('jMember', 'type', 'type' => 'string'), array('jMember', 'length', 'max' => 255)));
return $metadata;
}
示例3: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('jMember'), 'relations' => array('i' => array(RedBeanModel::HAS_ONE_BELONGS_TO, 'I')), 'rules' => array(array('jMember', 'safe')));
return $metadata;
}
示例4: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('iMember'), 'relations' => array('j' => array(static::HAS_ONE, 'J'), 'ks' => array(static::HAS_MANY, 'K'), 'ls' => array(static::MANY_MANY, 'L'), 'i' => array(static::HAS_MANY_BELONGS_TO, 'I'), 'is' => array(static::HAS_MANY, 'I', static::OWNED), 'hasOneRelation' => array(static::HAS_ONE, 'CustomField', static::OWNED, static::LINK_TYPE_SPECIFIC, 'hasOneRelation'), 'hasManyRelation' => array(static::HAS_MANY, 'A', static::OWNED), 'manyManyRelation' => array(static::MANY_MANY, 'Z')), 'rules' => array(array('iMember', 'type', 'type' => 'string'), array('iMember', 'length', 'max' => 255)));
return $metadata;
}
示例5: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('kMember'), 'relations' => array('i' => array(static::HAS_MANY_BELONGS_TO, 'I'), 'ii' => array(static::HAS_MANY_BELONGS_TO, 'II', static::NOT_OWNED, static::LINK_TYPE_ASSUMPTIVE), 'iii' => array(static::HAS_MANY_BELONGS_TO, 'III', static::OWNED, static::LINK_TYPE_SPECIFIC, 'ilink')), 'rules' => array(array('kMember', 'type', 'type' => 'string'), array('kMember', 'length', 'max' => 255)));
return $metadata;
}
示例6: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('iMember'), 'relations' => array('j' => array(RedBeanModel::HAS_ONE, 'J'), 'ks' => array(RedBeanModel::HAS_MANY, 'K'), 'ls' => array(RedBeanModel::MANY_MANY, 'L'), 'i' => array(RedBeanModel::HAS_MANY_BELONGS_TO, 'I'), 'is' => array(RedBeanModel::HAS_MANY, 'I', RedBeanModel::OWNED), 'hasOneRelation' => array(RedBeanModel::HAS_ONE, 'CustomField', RedBeanModel::OWNED), 'hasManyRelation' => array(RedBeanModel::HAS_MANY, 'A', RedBeanModel::OWNED), 'manyManyRelation' => array(RedBeanModel::MANY_MANY, 'Z')), 'rules' => array(array('iMember', 'safe')));
return $metadata;
}