All pastes #996005 Raw Edit

Mine

public php v1 · immutable
#996005 ·published 2008-04-24 17:31 UTC
rendered paste body
private function groupInfoDO($gurl = null) { return (isset(self::$group_info) || self::$group_info = DS_DO_Factory::instance('group_info', $gurl, is_numeric($gurl)?DS_Groups_Constants::GROUP_ID:DS_Groups_Constants::GROUP_URL))?self::$group_info:null; }        static function createPost($body, $metadata) {                $table = new DS_Table_BlogPost($GLOBALS['dsdb'], $GLOBALS['dsdb_w']);                $row = $table->newRow();                $row->setFields($metadata);                $row->setBody($body);                $row->commit();                return $row->getId();        }