class.compost.php
// We would like to be able to initialize the details
We would like to be able to initialize the details
We would like to be able to initialize the details
public function init($file)
    {
                if (empty($this->type) AND pathinfo($file, PATHINFO_EXTENSION) !== false) {
            $this->type      = pathinfo($file, PATHINFO_EXTENSION);
            $this->inputDir  = PWD . "/assets/" . $this->type;
            $this->outputDir = PWD . "/assets/" . $this->type . "/out";
            $this->uri       = $this->getDepth() . "assets/" . $this->type . "/out";
        }
    }
public function init ( $ file ) { if ( empty ( $ this -> type ) AND pathinfo ( $ file , PATHINFO_EXTENSION ) !== false ) { $ this -> type = pathinfo ( $ file , PATHINFO_EXTENSION ) ; $ this -> inputDir = PWD . " /assets/ " . $ this -> type ; $ this -> outputDir = PWD . " /assets/ " . $ this -> type . " /out " ; $ this -> uri = $ this -> getDepth ( ) . " assets/ " . $ this -> type . " /out " ; } }
We would like to be able to initialize the details
We would like to be able to initialize the details
// Do we have a type yet?
 // We can only set these once we have a file to work with