Formatting output Plese Wait...

shared Class Reference
[Handles Shared Content Routing.]

shourtcut to make the Url to the Shared Contrnts like Images javascripts CSS File(s) etc. More...

Inheritance diagram for shared:

Inheritance graph
[legend]
Collaboration diagram for shared:

Collaboration graph
[legend]

Public Member Functions

 image ($path, $prjName=Z_PROJECT_NAME)
 returns the Path to the Image
 javaScript ($path, $prjName=Z_PROJECT_NAME)
 returns the Path to the javascript File
 css ($path, $prjName=Z_PROJECT_NAME)
 returns the Path to the CSS
 vbScript ($path, $prjName=Z_PROJECT_NAME)
 returns the Path to the VB Scripts
 uploadedImage ($path, $prjName=Z_PROJECT_NAME)
 returns the Path to the Uploaded Image
 downloadedImage ($path, $prjName=Z_PROJECT_NAME)
 returns the Path to the Downloadable Image

Detailed Description

shourtcut to make the Url to the Shared Contrnts like Images javascripts CSS File(s) etc.

e.g. shared::image('file.png') wil return a String Like /zigmoyd/projects/main/path/to/file.png. a Shared Content belongs to a project so its expected that all shared contents resides in usr/share directory of your project's directory. like all images resides in usr/share/pix, all javascripts resides int usr/share/scripts/js directory. all stylesheets resides in usr/share/css Directory.

Now Loading it has nsimple too.in your css you used to code background: boring/image/path.png; before and now you will code it like this.

Show Source
 background: shared::image('imageName.png');
and thats all shared::image() will replace itself with proper path. When you are just passing the image name its not hiding the original path to the file. rather its rewrited as background: /path/to/usr/share/pix/imageName.png But when you prepend an ? or an </tt> symbol with it it will use smart url system by hiding the original path to image.
for Shared Content routing Zigmoyd actually uses a script called rt.php you will find it on yor Zigmoyd Installation directory. when ? or an </tt> symbol is used it uses rt.php to serve the content . e.g. it specifies the file name and type to rt.php as an get request and rt.php delivers that shared content. so if you use shared::image('?imageName.png'); or shared::image('.png'); the original path to the image will be kept hidden.
and If you use ? it will not utilize rewrite engine. else if </tt> is used it will utilize rewrite engine.

Definition at line 46 of file shared_helper.php.


Member Function Documentation

shared::image( string $path, string $prjName = Z_PROJECT_NAME )

shared::javaScript( string $path, string $prjName = Z_PROJECT_NAME )

shared::css( string $path, string $prjName = Z_PROJECT_NAME )

shared::vbScript( string $path, string $prjName = Z_PROJECT_NAME )

shared::uploadedImage( string $path, string $prjName = Z_PROJECT_NAME )

shared::downloadedImage( string $path, string $prjName = Z_PROJECT_NAME )


The documentation for this class was generated from the following file:

Generated on Mon Oct 27 23:53:12 2008 for zigmoyd.kdevelop by doxygen 1.5.6
CompoundsX
Build Compounds List