本文整理汇总了PHP中app\models\Course::className方法的典型用法代码示例。如果您正苦于以下问题:PHP Course::className方法的具体用法?PHP Course::className怎么用?PHP Course::className使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\models\Course
的用法示例。
在下文中一共展示了Course::className方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getCourses
/**
* @return \yii\db\ActiveQuery
*/
public function getCourses()
{
return $this->hasMany(Course::className(), ['id' => 'course_id'])->viaTable('user_has_course', ['user_id' => 'id']);
}
示例2: getCourse
public function getCourse()
{
return $this->hasOne(Course::className(), ['course_id' => 'course_id']);
}
示例3: getTmCrs
/**
* @return \yii\db\ActiveQuery
*/
public function getTmCrs()
{
return $this->hasOne(Course::className(), ['crs_id' => 'tm_crs_id']);
}
示例4: getCourse
public function getCourse()
{
return $this->hasOne(Course::className(), ['id' => 'course_id'])->viaTable('course_vacancy', ['vacancy_id' => 'id']);
}
示例5: getTmCrs
/**
* @return \yii\db\ActiveQuery
*/
public function getTmCrs()
{
return $this->hasMany(Course::className(), ['crs_id' => 'tm_crs_id'])->viaTable('teacher_matrix', ['tm_tchr_id' => 'tchr_id']);
}
示例6: getCoursePreferences
public function getCoursePreferences()
{
return $this->hasMany(Course::className(), ['id' => 'course_type_id'])->viaTable('student_course_preference', ['student_id' => 'id'])->all();
}
示例7: getCourses
/**
* @return \yii\db\ActiveQuery
*/
public function getCourses()
{
return $this->hasMany(Course::className(), ['crs_ct_id' => 'ct_id']);
}
示例8: getCourse
public function getCourse()
{
return $this->hasMany(Course::className(), ['category_id' => 'category_id']);
}
示例9: getCcCrs
/**
* @return \yii\db\ActiveQuery
*/
public function getCcCrs()
{
return $this->hasMany(Course::className(), ['crs_id' => 'cc_crs_id'])->viaTable('course_campus', ['cc_cmps_id' => 'cmps_id']);
}