diff options
author | Roman Tsiupa <draconyster@gmail.com> | 2013-01-18 23:07:50 +0200 |
---|---|---|
committer | Roman Tsiupa <draconyster@gmail.com> | 2013-01-18 23:07:50 +0200 |
commit | cde8cc7986f7cec810e34eed4c2feda88acfe970 (patch) | |
tree | 5114becb6a3a8e71508ad169f19d7d79116a758b /application/classes/model/poll.php | |
parent | 65a7f45a570dde73e1ca1fefc1af15491772e8fc (diff) | |
download | PHPixie-origin/ormwith.zip PHPixie-origin/ormwith.tar.gz PHPixie-origin/ormwith.tar.bz2 |
Request paersing with .htaccess disabledorigin/ormwith
Diffstat (limited to 'application/classes/model/poll.php')
-rw-r--r-- | application/classes/model/poll.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/application/classes/model/poll.php b/application/classes/model/poll.php deleted file mode 100644 index a2cfe08..0000000 --- a/application/classes/model/poll.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php
-class Poll_Model extends ORM{
- public $has_many=array('options');
-
- public function get($property){
- if ($property == 'total_votes') {
- $total=0;
- foreach($this->options->find_all() as $option)
- $total += $option->votes;
- return $total;
- }
- }
-}
\ No newline at end of file |