本文整理汇总了PHP中devgroup\tagdependencyhelper\ActiveRecordHelper::className方法的典型用法代码示例。如果您正苦于以下问题:PHP ActiveRecordHelper::className方法的具体用法?PHP ActiveRecordHelper::className怎么用?PHP ActiveRecordHelper::className使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类devgroup\tagdependencyhelper\ActiveRecordHelper
的用法示例。
在下文中一共展示了ActiveRecordHelper::className方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: behaviors
/**
* @inheritdoc
*/
public function behaviors()
{
return [['class' => HasProperties::className()], ['class' => ActiveRecordHelper::className()], ['class' => CleanRelations::className()], ['class' => Tree::className(), 'activeAttribute' => 'published']];
}
示例2: behaviors
/**
* @inheritdoc
*/
public function behaviors()
{
return [['class' => \voskobovich\behaviors\ManyToManyBehavior::className(), 'relations' => ['users_list' => 'users', 'statuses_list' => 'orderStatuses', 'order_template' => 'orderTemplate']], ['class' => ActiveRecordHelper::className(), 'cache' => 'cache']];
}
示例3: behaviors
public function behaviors()
{
return [['class' => Tree::className(), 'cascadeDeleting' => true], ['class' => ActiveRecordHelper::className()]];
}
示例4: behaviors
/**
* @inheritdoc
*/
public function behaviors()
{
return [['class' => TimestampBehavior::className(), 'createdAtAttribute' => 'create_time', 'updatedAtAttribute' => 'update_time'], ['class' => \devgroup\TagDependencyHelper\ActiveRecordHelper::className()], ['class' => HasProperties::className()]];
}
示例5: behaviors
public function behaviors()
{
return [['class' => HasProperties::className()], ['class' => \devgroup\TagDependencyHelper\ActiveRecordHelper::className()], ['class' => CleanRelations::className()], ['class' => Tree::className(), 'activeAttribute' => 'active', 'sortOrder' => ['sort_order' => SORT_ASC, 'id' => SORT_ASC]]];
}
示例6: behaviors
public function behaviors()
{
return [['class' => HasProperties::className()], ['class' => ActiveRecordHelper::className()], ['class' => CleanRelations::className()], ['class' => Tree::className()]];
}
示例7: behaviors
public function behaviors()
{
return [['class' => \devgroup\TagDependencyHelper\ActiveRecordHelper::className()], ['class' => Tree::className(), 'sortOrder' => 'sort_order ASC']];
}
示例8: behaviors
/**
* @inheritdoc
*/
public function behaviors()
{
return [['class' => HasProperties::className()], ['class' => ActiveRecordHelper::className()], ['class' => CleanRelations::className()], ['class' => Tree::className(), 'activeAttribute' => 'published', 'sortOrder' => ['sort_order' => SORT_ASC, 'id' => SORT_ASC]], ['class' => TimestampBehavior::className(), 'createdAtAttribute' => 'date_added', 'updatedAtAttribute' => 'date_modified', 'value' => new Expression('NOW()'), 'attributes' => [ActiveRecord::EVENT_BEFORE_INSERT => ['date_added'], ActiveRecord::EVENT_BEFORE_UPDATE => ['date_modified']]]];
}
示例9: behaviors
/**
* @inheritdoc
*/
public function behaviors()
{
return [['class' => Tree::className(), 'activeAttribute' => 'active'], ['class' => HasProperties::className()], ['class' => \devgroup\TagDependencyHelper\ActiveRecordHelper::className()], ['class' => CleanRelations::className()]];
}
示例10: behaviors
/**
* @inheritdoc
*/
public function behaviors()
{
return [['class' => HasProperties::className()], ['class' => ActiveRecordHelper::className()], ['class' => CleanRelations::className()], ['class' => Tree::className(), 'activeAttribute' => 'published', 'sortOrder' => ['sort_order' => SORT_ASC, 'id' => SORT_ASC]]];
}
示例11: behaviors
/**
* @inheritdoc
*/
public function behaviors()
{
return ArrayHelper::merge(parent::behaviors(), ['class' => ActiveRecordHelper::className()]);
}
示例12: behaviors
/**
* @inheritdoc
*/
public function behaviors()
{
return [['class' => AttributeBehavior::className(), 'attributes' => [ActiveRecord::EVENT_BEFORE_INSERT => 'sort_order'], 'value' => 0], ['class' => \devgroup\TagDependencyHelper\ActiveRecordHelper::className()]];
}
示例13: behaviors
/**
* @inheritdoc
*/
public function behaviors()
{
return [TimestampBehavior::className(), 'class' => ActiveRecordHelper::className()];
}
示例14: behaviors
/**
* @inheritdoc
*/
public function behaviors()
{
return [['class' => ActiveRecordHelper::className()]];
}
示例15: behaviors
/**
* @inheritdoc
*/
public function behaviors()
{
return [['class' => AttributeBehavior::className(), 'attributes' => [ActiveRecord::EVENT_BEFORE_INSERT => 'sort_order'], 'value' => 0], ['class' => ActiveRecordHelper::className()], ['class' => HasProperties::className()]];
}