Ignore:
Timestamp:
2006/12/11 21:53:47 (20 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspolloption.php

    r699 r709  
    120120 
    121121    // public static 
     122    function &getOptionByOptionId($option_id) 
     123    { 
     124        $db =& Database::getInstance(); 
     125        $ret = array(); 
     126        $sql = "SELECT * FROM ".$db->prefix("xoopspoll_option")." WHERE option_id=".intval($option_id).""; 
     127        $result = $db->query($sql); 
     128        while ( $myrow = $db->fetchArray($result) ) { 
     129            $ret[] = new XoopsPollOption($myrow); 
     130        } 
     131        //echo $sql; 
     132        return $ret; 
     133    } 
     134         
     135    // public static 
    122136    function &getAllOption() 
    123137    { 
Note: See TracChangeset for help on using the changeset viewer.