1 / 6

ICS Software Development

ICS Software Development. -Instantiating an Object by example $oehdr = new_(“oehdr”); $oehdr->oebr = “F”; $oehdr->select(); //finds 1 st record $oehdr->select(array(“all” => true)); //all. -continued… If you find 1 record then the current object’s properties are set to that record

kipp
Download Presentation

ICS Software Development

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ICS Software Development

  2. -Instantiating an Object by example $oehdr = new_(“oehdr”); $oehdr->oebr = “F”; $oehdr->select(); //finds 1st record $oehdr->select(array(“all” => true)); //all

  3. -continued… If you find 1 record then the current object’s properties are set to that record If you find more than 1 record then an array of records is returned, and the property $oehdr->find_all contains a copy of that array

  4. Sessions and “state” in PHP • PHP by default is a stateless language • Because the underlying technology is stateless • Statelessness means one request does not affect consecutive requests • (ie. Every request is treated as a brand new request) • $_SESSION is a global array meant to solve this problem • Sessions allow the server to keep track of visitors

  5. Multi-Dimensional Arrays • $_SESSION[‘lda’] = array() • $_SESSION[‘lda’][‘udbr’] = ‘F’ • $_SESSION[‘lda’][‘udusnm’] = ‘CHARLES’ • $_SESSION[‘mvc’] = array() • $_SESSION[‘mvc’][‘app’] = ‘development’ • $_SESSION[‘mvc’][‘decorators’] = ‘ICS’ • $_SESSION[‘tmp’] = array() • $_SESSION[‘tmp’][‘oehdr’] = $oehdr

  6. <?php break; ?>

More Related