Show
Ignore:
Timestamp:
04/19/08 00:50:05 (9 months ago)
Author:
inureyes
Message:

#759

  • POD framework의 기본인 DBQuery에 sql 호환 함수 추가
    • num_rows, fetch
  • 관련하여 전체 코드 정리
  • mysql_ 계열의 명령을 코드 전체에서 제외
  • User class의 model dependency 제거
  • Blog class 추가
    • TODO : model dependency 제외및 기능 수정
  • 사흘정도 네트워크를 못하고 로컬 수정한거라 좀 변경 사항이 많습니다.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/components/Textcube.Data.GuestComment.php

    r5285 r5775  
    3939                $filter $sort"); 
    4040        if ($this->_result) { 
    41             if ($this->_count = mysql_num_rows($this->_result)) 
     41            if ($this->_count = POD::num_rows($this->_result)) 
    4242                return $this->shift(); 
    4343            else 
    44                 mysql_free_result($this->_result); 
     44                POD::free($this->_result); 
    4545        } 
    4646        unset($this->_result); 
     
    5050    function close() { 
    5151        if (isset($this->_result)) { 
    52             mysql_free_result($this->_result); 
     52            POD::free($this->_result); 
    5353            unset($this->_result); 
    5454        } 
     
    5959    function shift() { 
    6060        $this->reset(); 
    61         if ($this->_result && ($row = mysql_fetch_assoc($this->_result))) { 
     61        if ($this->_result && ($row = POD::fetch($this->_result))) { 
    6262            foreach ($row as $name => $value) { 
    6363                if ($name == 'blogid')