- Jun 05, 2015
-
-
xamgore authored
1. Discipline models have the direct access to fields, for example: $discipline->subjectName, so you don't have to remember them (press ctrl+space). Improves static code analysis. Also, if you make a mismatch, ErrorException will be thrown — this is the most important improvement. 2. There are some operations on disciplines (attach new teacher, transfer discipline to another teacher, an so on), so you can use them: $discipline->attachTeacher(53). 3. Discipline model has array access operators, so you must not convert instances with toArray() method. A common way is: /* PHP */ $d = Model_Discipline::load($id); $d['extraField'] = 127; $twig->Discipline = $d; // is ok, cause $d is like an array /* Twig */ {{ Discipline.extraField }} // call $d->offsetGet('extraField') method 4. Models Faculty, Student, Teachers and Groups have `getDisciplines()` method, and an array of Model_Discipline will be returned. 5. We use camelCase for all fields: in twig, on the PHP level and also in the database.
-
- Jun 03, 2015
-
-
RomanSteinberg authored
-
- May 29, 2015
-
-
xamgore authored
-
- May 24, 2015
-
-
xamgore authored
-
xamgore authored
-
Andrew Rudenets authored
-
PavelBegunkov authored
-
PavelBegunkov authored
-
- May 23, 2015
-
-
RomanSteinberg authored
-
- May 18, 2015
-
-
Роман Штейнберг authored
-
- May 17, 2015
-
-
Sergey Krujilin authored
-
PavelBegunkov authored
2) forbid exam for students with <38
-
RomanSteinberg authored
-
- May 16, 2015
-
-
PavelBegunkov authored
-
- May 14, 2015
-
-
RomanSteinberg authored
-
- Apr 30, 2015
-
-
Sergey Krujilin authored
-
- Apr 11, 2015
-
-
PavelBegunkov authored
-
PavelBegunkov authored
fix empty fullnames on rating page. fix teacher search on teacher binding page. fix undefined vars in sql
-
- Apr 07, 2015
-
-
RomanSteinberg authored
-
- Mar 22, 2015
-
-
xamgore authored
-
- Mar 05, 2015
-
-
RomanSteinberg authored
-
xamgore authored
Radio- & checkbox-buttons have got wrapping label tags, so if you click on the text near such element, onclick event will be raised. Improves usability. Illustration: http://goo.gl/RdCZaN
-
- Mar 04, 2015
-
-
PavelBegunkov authored
-
- Mar 01, 2015
-
-
PavelBegunkov authored
-
PavelBegunkov authored
-
- Feb 15, 2015
-
-
PavelBegunkov authored
-
- Feb 13, 2015
-
-
unknown authored
-
- Feb 11, 2015
-
-
PavelBegunkov authored
-
PavelBegunkov authored
-
PavelBegunkov authored
-
- Feb 08, 2015
-
-
Роман Штейнберг authored
-
Andrew Rudenets authored
-
Andrew Rudenets authored
-
Andrew Rudenets authored
-
pimka authored
-
- Feb 05, 2015
-
-
Роман Штейнберг authored
-
- Feb 04, 2015
-
-
Роман Штейнберг authored
-
Andrew Rudenets authored
2. Исправление верстки на странице редактирования персональных данных
-
- Feb 03, 2015
-
-
Andrew Rudenets authored
-
- Feb 02, 2015
-
-
Andrew Rudenets authored
-