Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. class Student extends BaseStudent {
  2.  
  3. private $address;
  4. private $stepStudent;
  5. private $booksOrder;
  6.  
  7. function __construct($table = null, $isNewEntry = false) {
  8. parent::__construct($table, $isNewEntry);
  9. $this->address = new Address();
  10. $this->address->Student = $this;
  11. $this->stepStudent = new StepStudent();
  12. $this->stepStudent->setAuditor('1');
  13. $this->stepStudent->setFirstStep('1');
  14. $this->stepStudent->setFirstGrade('1');
  15. $this->stepStudent->setAccessClaroline('0');
  16. $this->stepStudent->step_id = 8;
  17. $this->booksOrder = new BooksOrder();
  18. }
  19.  
  20. public function getInstanceAddress() {
  21. return $this->address;
  22. }
  23.  
  24. public function getInstanceStepStudent() {
  25. return $this->stepStudent;
  26. }
  27.  
  28. public function getInstanceBooksOrder() {
  29. return $this->booksOrder;
  30. }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement