summaryrefslogtreecommitdiffstats
path: root/application/classes/model/poll.php
diff options
context:
space:
mode:
authorRoman Tsiupa <draconyster@gmail.com>2013-01-18 23:07:50 +0200
committerRoman Tsiupa <draconyster@gmail.com>2013-01-18 23:07:50 +0200
commitcde8cc7986f7cec810e34eed4c2feda88acfe970 (patch)
tree5114becb6a3a8e71508ad169f19d7d79116a758b /application/classes/model/poll.php
parent65a7f45a570dde73e1ca1fefc1af15491772e8fc (diff)
downloadPHPixie-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.php13
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