Strict Standards: Non-static method Soojung::addReferer() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/settings.php on line 79

Warning: Cannot modify header information - headers already sent by (output started at /home/lifthrasiir/sites/sapzil.info/soojung/settings.php:79) in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Counter.class.php on line 63

Strict Standards: Non-static method Entry::getEntry() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/entry.php on line 51

Strict Standards: Non-static method Soojung::entryIdToFilename() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Entry.class.php on line 182

Strict Standards: Non-static method Soojung::queryFilenameMatch() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Soojung.class.php on line 55
TokigunStudio3 | 블로그: TiniSeries core objects

내용으로 바로 넘어 가기


TokigunStudio3

228 / 3282   


더 이상 이 블로그는 운영되지 않습니다. 새 블로그로 가 주세요.

TiniSeries core objects

2004/09/22 PM 03:12 | 개발/구상 | 4 comments | 0 trackbacks | AllBlog: vote, to pocket

TiniSeries, 긍께 Tini{BBS,Blog,Wiki,Planet}에 공통적으로 사용하는 클래스들을 모았다. 나만의 클래스 라이브러리..랄까. pear 쓸까 하다가 pear 없는 곳도 꽤 된다는 걸 생각하고 그냥 새로 만들기로 결심.

대충 생각나는 대로 적어 보았음.


common.php -- 기본 클래스
tinicore_object -- 모든 클래스의 조상 클래스. php4, php5의 생성자 함수 차이를 고치기 위한 코드가 조금 들어 있는 거 빼고 별로 주목할 거 없음.
tinicore_errorhandler -- 에러 처리를 위한 기본적인 처리가 들어 있음
tinicore_errorhandler_trigger -- tinicore_errorhandler에서 상속받아서 php 에러로 redirection하는 역할을 함. 대부분은 이 클래스를 상속한다.
tinicore_timer -- 시간 기록을 위해서 사용함. 정말로 운동 선수가 사용하는 타이머를 상상하면 도대체 어떤 함수가 제공될 지 대충 짐작이 갈 거다.

db.php -- 데이터베이스 핸들러
tinicore_db -- 데이터베이스 핸들러 기본 클래스. 별 거 없음.
tinicore_db_result -- 데이터베이스 핸들러 쿼리 결과 기본 클래스. 역시 별 거 없음. 내부적으로 사용하므로 기본적으로는 사용자가 인스턴스를 만들지 않는 게 좋다.
tinicore_db_mysql, tinicore_db_mysql_result -- MySQL 핸들러
tinicore_db_sqlite, tinicore_db_sqlite_result -- SQLite 핸들러
tinicore_db_pgsql, tinicore_db_pgsql_result -- PostgreSQL 핸들러

생성할 때는 new tinicore_db_mysql("localhost", "tokigun", "blahblah", "tokigun"), new tinicore_db_sqlite("tokigun.dat", 0777) 식으로 한다. pgsql은 안 써 봐서 해 봐야 알겠고.

image.php -- 이미지 wrapper (정말이라니까)
tinicore_image -- 기본적인 이미지 wrapper
tinicore_image_ -- 이미지 입력을 위한... 생성자 빼고 다 같다.

template.php -- 템플릿 엔진
tinicore_template -- 템플릿 메인 엔진..
tinicore_template_filter_* -- ...말할 게 없다.

TrackBack URL: http://sapzil.info/soojung/trackback.php?blogid=7

Comment: 디토 (2004/09/22 PM 04:47)

이런건 어때요?
TiniCore::getLibrary("db_mysql", ...) -_-;;

Comment: 토끼군 (2004/09/22 PM 04:49)

디토: 그 짓을 왜 해요 -_-;;;

Comment: 디토 (2004/09/22 PM 04:52)

그냥 멋있어 보이니까. -_-a
Pear::DB도 $db = DB::Connect("mysql://..."); 이런식이던데요;

Comment: 토끼군 (2004/09/22 PM 05:01)

디토: 차라리 그렇게 하라고 말씀하셨으면 말을 안 하죠 ;;; 그거 같은 경우 mysql://path/to/socket 이런 식으로 쓰는 거니...

Copyright (c) 1995-2005, Kang Seonghoon (Tokigun).