當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ActiveRecordHelper::className方法代碼示例

本文整理匯總了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']];
 }
開發者ID:solovjov,項目名稱:dotplant2,代碼行數:7,代碼來源:Page.php

示例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']];
 }
開發者ID:sap55,項目名稱:yii2-order-management,代碼行數:7,代碼來源:Store.php

示例3: behaviors

 public function behaviors()
 {
     return [['class' => Tree::className(), 'cascadeDeleting' => true], ['class' => ActiveRecordHelper::className()]];
 }
開發者ID:ar7n,項目名稱:dotplant2,代碼行數:4,代碼來源:OrderItem.php

示例4: behaviors

 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => TimestampBehavior::className(), 'createdAtAttribute' => 'create_time', 'updatedAtAttribute' => 'update_time'], ['class' => \devgroup\TagDependencyHelper\ActiveRecordHelper::className()], ['class' => HasProperties::className()]];
 }
開發者ID:phisic,項目名稱:dotplant2,代碼行數:7,代碼來源:User.php

示例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]]];
 }
開發者ID:Razzwan,項目名稱:dotplant2,代碼行數:4,代碼來源:Category.php

示例6: behaviors

 public function behaviors()
 {
     return [['class' => HasProperties::className()], ['class' => ActiveRecordHelper::className()], ['class' => CleanRelations::className()], ['class' => Tree::className()]];
 }
開發者ID:heartshare,項目名稱:dotplant2,代碼行數:4,代碼來源:Page.php

示例7: behaviors

 public function behaviors()
 {
     return [['class' => \devgroup\TagDependencyHelper\ActiveRecordHelper::className()], ['class' => Tree::className(), 'sortOrder' => 'sort_order ASC']];
 }
開發者ID:heartshare,項目名稱:dotplant2,代碼行數:4,代碼來源:Navigation.php

示例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']]]];
 }
開發者ID:flarmn,項目名稱:dotplant2,代碼行數:7,代碼來源:Page.php

示例9: behaviors

 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => Tree::className(), 'activeAttribute' => 'active'], ['class' => HasProperties::className()], ['class' => \devgroup\TagDependencyHelper\ActiveRecordHelper::className()], ['class' => CleanRelations::className()]];
 }
開發者ID:solovjov,項目名稱:dotplant2,代碼行數:7,代碼來源:Product.php

示例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]]];
 }
開發者ID:Razzwan,項目名稱:dotplant2,代碼行數:7,代碼來源:Page.php

示例11: behaviors

 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), ['class' => ActiveRecordHelper::className()]);
 }
開發者ID:hufeng903,項目名稱:getyii,代碼行數:7,代碼來源:PostMeta.php

示例12: behaviors

 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => AttributeBehavior::className(), 'attributes' => [ActiveRecord::EVENT_BEFORE_INSERT => 'sort_order'], 'value' => 0], ['class' => \devgroup\TagDependencyHelper\ActiveRecordHelper::className()]];
 }
開發者ID:heartshare,項目名稱:dotplant2,代碼行數:7,代碼來源:PropertyGroup.php

示例13: behaviors

 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [TimestampBehavior::className(), 'class' => ActiveRecordHelper::className()];
 }
開發者ID:hufeng903,項目名稱:getyii,代碼行數:7,代碼來源:User.php

示例14: behaviors

 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => ActiveRecordHelper::className()]];
 }
開發者ID:heartshare,項目名稱:dotplant2,代碼行數:7,代碼來源:Events.php

示例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()]];
 }
開發者ID:kronos777,項目名稱:dotplant2,代碼行數:7,代碼來源:Property.php


注:本文中的devgroup\tagdependencyhelper\ActiveRecordHelper::className方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。