jonassanoj / dbpro

DB Project 1
19 stars 1 forks source link

user_model: implement and document get_usertype() and get_field() #56

Closed tilman-schieber closed 12 years ago

tilman-schieber commented 12 years ago

models/user_model.php

line 54: implement and document get_usertype() and get_field(). Both return a single integer indicating the usertypeID or fieldID of the user.

tilman-schieber commented 12 years ago

issue updated. was a duplicate with other user_model issues.

make sure you work on a recent version

tilman-schieber commented 12 years ago

//TODO: implement and document get_usertype() and get_field(). Both return a single integer indicating the usertypeID or fieldID of the user.

your functions do not return integers. they are also not commented correctly. Like stated in the documentation you should use active record queries and not direct sql. Also you did not commit to master branch Please put a little more work into this next time.