protected function generateStockID()
    {
        $title = "";
            
        foreach (explode(" ", $this->Title) as $string) {
            $string = substr($string, 0, 1);
            $title .= $string;
        }
        
        return $title . "-" . $this->ID;
    }
protected function generateStockID()
    {
        $title = "";
            
        foreach (explode(" ", $this->Title) as $string) {
            $string = substr($string, 0, 1);
            $title .= $string;
        }
        
        return $title . "-" . $this->ID;
    }
protected function generateStockID ( ) { $ title = "" ; foreach ( explode ( " " , $ this -> Title ) as $ string ) { $ string = substr ( $ string , 0 , 1 ) ; $ title .= $ string ; } return $ title . "-" . $ this -> ID ; }
Generate a stock ID, based on the title and ID
of this product

@return string
Generate a stock ID based on the title and ID of this product