modxcms-jp/evolution-jp — pull request #30 by tonatos3 (2012-12-25 19:49:33+00:00)
Title: Some function to work with db as OOP style

How about some of the functions to work with the database to simplify the code?

$doc=$modx->db->get_record("site_content","id=1");
echo $doc->pagetitle;

$docs = $modx->db->get_records("site_content","parent=1 and pubished=1 and deleted=0");
foreach($docs as $doc){
...
}

p.s. If this is not the ideology of development modx-evolution-jp, please tell me.