Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

FunctionDescription
getAbsolutePath()Get the absolute path to the image (e.g. "var/www/contenido/cms/uploads/images/image.jpg")
getRelativePath()Returns a path to the image relative to the upload directory of the client (e.g. "images/image.jpg")
getAbsoluteUrl()Return the absolute URL of the image (e.g. "http://example.com/cms/uploads/images/image.jpg")
getRelativeUrl()Get the URL of the image relative to the client base directory (e.g. "uploads/images/image.jpg")
getMetadata()

Gives an array with configured meta data.

Code Block
languagephp
$returnValue = array(
	"medianame" => "bla",
	"descirption" => "picture of a lake",
	"keywords" => "lake nice picture"
	"internalnotice" => "do not touch"
	"copyright" => "(C) 1295");
generateViewCode()Generates the code which should be shown if this content type is shown in the frontend.
generateEditCode()Generates the code which should be shown if this content type is edited.
generateFileSelect()Generate a select box containing all files in the given directory.
getImageMeta()Gets the meta data of the image with the given filename/dirname (similar to getMetaData()).
uplmkdir()Creates an upload directory. Wrapper function for uplmkdir in functions.upl.php.
uplupload()Uploads the transmitted files saved in the $_FILES array.