You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
232 lines
3.7 KiB
232 lines
3.7 KiB
<?php
|
|
|
|
namespace Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
*
|
|
* @license see /license.txt
|
|
* @author autogenerated
|
|
*/
|
|
class CourseCategory extends \Entity
|
|
{
|
|
/**
|
|
* @return \Entity\Repository\CourseCategoryRepository
|
|
*/
|
|
public static function repository(){
|
|
return \Entity\Repository\CourseCategoryRepository::instance();
|
|
}
|
|
|
|
/**
|
|
* @return \Entity\CourseCategory
|
|
*/
|
|
public static function create(){
|
|
return new self();
|
|
}
|
|
|
|
/**
|
|
* @var integer $id
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* @var string $name
|
|
*/
|
|
protected $name;
|
|
|
|
/**
|
|
* @var string $code
|
|
*/
|
|
protected $code;
|
|
|
|
/**
|
|
* @var string $parent_id
|
|
*/
|
|
protected $parent_id;
|
|
|
|
/**
|
|
* @var integer $tree_pos
|
|
*/
|
|
protected $tree_pos;
|
|
|
|
/**
|
|
* @var smallint $children_count
|
|
*/
|
|
protected $children_count;
|
|
|
|
/**
|
|
* @var string $auth_course_child
|
|
*/
|
|
protected $auth_course_child;
|
|
|
|
/**
|
|
* @var string $auth_cat_child
|
|
*/
|
|
protected $auth_cat_child;
|
|
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function get_id()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set name
|
|
*
|
|
* @param string $value
|
|
* @return CourseCategory
|
|
*/
|
|
public function set_name($value)
|
|
{
|
|
$this->name = $value;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get name
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_name()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Set code
|
|
*
|
|
* @param string $value
|
|
* @return CourseCategory
|
|
*/
|
|
public function set_code($value)
|
|
{
|
|
$this->code = $value;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get code
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_code()
|
|
{
|
|
return $this->code;
|
|
}
|
|
|
|
/**
|
|
* Set parent_id
|
|
*
|
|
* @param string $value
|
|
* @return CourseCategory
|
|
*/
|
|
public function set_parent_id($value)
|
|
{
|
|
$this->parent_id = $value;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get parent_id
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_parent_id()
|
|
{
|
|
return $this->parent_id;
|
|
}
|
|
|
|
/**
|
|
* Set tree_pos
|
|
*
|
|
* @param integer $value
|
|
* @return CourseCategory
|
|
*/
|
|
public function set_tree_pos($value)
|
|
{
|
|
$this->tree_pos = $value;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get tree_pos
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function get_tree_pos()
|
|
{
|
|
return $this->tree_pos;
|
|
}
|
|
|
|
/**
|
|
* Set children_count
|
|
*
|
|
* @param smallint $value
|
|
* @return CourseCategory
|
|
*/
|
|
public function set_children_count($value)
|
|
{
|
|
$this->children_count = $value;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get children_count
|
|
*
|
|
* @return smallint
|
|
*/
|
|
public function get_children_count()
|
|
{
|
|
return $this->children_count;
|
|
}
|
|
|
|
/**
|
|
* Set auth_course_child
|
|
*
|
|
* @param string $value
|
|
* @return CourseCategory
|
|
*/
|
|
public function set_auth_course_child($value)
|
|
{
|
|
$this->auth_course_child = $value;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get auth_course_child
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_auth_course_child()
|
|
{
|
|
return $this->auth_course_child;
|
|
}
|
|
|
|
/**
|
|
* Set auth_cat_child
|
|
*
|
|
* @param string $value
|
|
* @return CourseCategory
|
|
*/
|
|
public function set_auth_cat_child($value)
|
|
{
|
|
$this->auth_cat_child = $value;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get auth_cat_child
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_auth_cat_child()
|
|
{
|
|
return $this->auth_cat_child;
|
|
}
|
|
} |