u-vote.eu/uVote/api/api_uvote.php
Nael cb9a202f3b minor changes in db queries
problem with main frame loading from db (Q1 condition unclear)
2014-02-13 14:53:18 +01:00

37 lines
985 B
PHP

<?php
class api_uvote extends \SYSTEM\API\api_login {
public static function call_vote_action_vote($poll_ID, $vote) {
return votes::write_vote($poll_ID, $vote);
}
public static function call_vote_action_new_vote($ID, $title, $iframe_link) {
return votes::write_poll($ID, $title, $iframe_link);
}
public static function call_vote_action_feedback($feedback) {
return votes::write_feedback($feedback);
}
public static function call_vote_action_open_vote($poll_ID) {
return votes::open_vote($poll_ID);
}
public static function call_vote_action_barsperusers($poll_ID){
return votes::get_barsperusers($poll_ID);}
public static function call_img($cat, $id){
return \SYSTEM\IMG\img::get($cat, $id);
}
public static function call_vote_action_submit($poll_ID) {
return votes::vote_submit($poll_ID);
}
}