コード例 #1
0
ファイル: Content.php プロジェクト: honestgorillas/humhub
 public function behaviors()
 {
     return [['class' => \humhub\components\behaviors\PolymorphicRelation::className(), 'mustBeInstanceOf' => array(ContentActiveRecord::className())], ['class' => \humhub\components\behaviors\GUID::className()]];
 }
コード例 #2
0
ファイル: User.php プロジェクト: kreativmind/humhub
 public function behaviors()
 {
     return array(\humhub\components\behaviors\GUID::className(), \humhub\modules\content\components\behaviors\SettingsBehavior::className(), \humhub\modules\user\behaviors\Followable::className(), \humhub\modules\user\behaviors\UserModelModules::className());
 }
コード例 #3
0
ファイル: Space.php プロジェクト: alefernie/intranet
 public function behaviors()
 {
     return array(\humhub\components\behaviors\GUID::className(), \humhub\modules\space\behaviors\SpaceSetting::className(), \humhub\modules\space\behaviors\SpaceModelModules::className(), \humhub\modules\space\behaviors\SpaceModelMembership::className(), \humhub\modules\user\behaviors\Followable::className());
 }