From: Joe Stewart <joestewart@us...> - 2004-01-16 16:24:32
Okay, getting my php hat on again for a little bit -
Anatomy of a pageview in psl-0.8
This is probably not entirely correct or complete.
browser sends request
config.php is loaded. -
config.ini.php parsed into $_PSL array.
sets up phplib in include/class/phplib.
test for unconfigured new install - This can be removed after installation
setup other $_PSL variables.
add class requirements
jpcache - TODO move to function/method
if cached, skip everything and spit out the page
else go on with pageview and update the cache
Load _GET variables into $ary
phplib page_open - php4 session, auth, and perms
set page title
login if requested
set module file if not in _GET request [default is index.php]
call block_module index.php -
add block class requirements
instantiate block object
call page blocks (block_render_page) - This is basically the old index page
running getBlocks on the columns and deciding which index template is correct.
blocks are returned for the section and user perms
top blocks - header, topicbar, navbar
left, right blocks - whatever defined for the section.
center block - module block
calls story module by default unless set in _GET or block option
add story class requirements
instantiate story object
getStories applies the options in $ary, individual story options
including template and output plugins.
bottom blocks - bottom navbar, footer
return block module into $content variable.
display $content variable.
That is a simplified look. There is much flexibility in the block setups.
Get latest updates about Open Source Projects, Conferences and News.