本文整理匯總了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()]];
}