phpDocumentor pivotx
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Class: oops_image

Source Location: /modules/module_oops.php

Class oops_image

Property Summary
mixed   $data  
mixed   $if_invalid_do  
mixed   $if_invalid_image  
mixed   $use_thumbs  

[ Top ]
Method Summary
static void   smartymodifier_oops_image()  
static void   smarty_oops_image()   Load an image and do stuff
oops_image   __construct()  
void   getImgPlaceholder()  
void   getImgSrc()  
void   getImgTag()  
void   getWidth()  
void   get_widthheight()  
void   setInvalidImage()  
void   setThumbsOptions()  
void   setTimthumbOptions()  
void   set_src()  
void   _cacheremotefile()  
void   __get()  
void   __set()  

[ Top ]
Properties
mixed   $data = false [line 6658]
API Tags:
Access:  protected


[ Top ]
mixed   $if_invalid_do = 'default' [line 6672]
API Tags:
Access:  protected


[ Top ]
mixed   $if_invalid_image = false [line 6664]
API Tags:
Access:  protected


[ Top ]
mixed   $use_thumbs = false [line 6661]
API Tags:
Access:  protected


[ Top ]
Methods
static method smartymodifier_oops_image  [line 6931]

  static void smartymodifier_oops_image( $src, [ $width = false], [ $height = false], [ $alt = '']  )

Parameters:
   $src: 
   $width: 
   $height: 
   $alt: 

API Tags:
Access:  public


[ Top ]
static method smarty_oops_image  [line 6918]

  static void smarty_oops_image( $params, &$smarty  )

Load an image and do stuff

Example: first 'load' an image:

  1. [[oops_image src='images/test.jpg' assign='picture']]


  1.  &lt;!-- with the variable you can now do various things --&gt;<br/>
  2.  width=[[$picture->width]]height=[[$picture->height]]<br/>
  3.  get a thumbed image-src [[$picture->getImgSrc(300,200)]]<br/>
  4.  get a full image tag [[$picture->getImgTag(300,200,'Alt text','Title text')]]<br/>

Parameters:
   $params: 
   &$smarty: 

API Tags:
Access:  public


[ Top ]
Constructor __construct  [line 6674]

  oops_image __construct( $src  )

Parameters:
   $src: 

API Tags:
Access:  public


[ Top ]
getImgPlaceholder  [line 6814]

  void getImgPlaceholder( $width, $height, [ $type = 'empty']  )

Parameters:
   $width: 
   $height: 
   $type: 

API Tags:
Access:  protected


[ Top ]
getImgSrc  [line 6860]

  void getImgSrc( [ $width = false], [ $height = false], [ $options = false]  )

Parameters:
   $width: 
   $height: 
   $options: 

API Tags:
Access:  public


[ Top ]
getImgTag  [line 6882]

  void getImgTag( [ $width = false], [ $height = false], [ $alt = ''], [ $title = ''], [ $class = '']  )

Parameters:
   $width: 
   $height: 
   $alt: 
   $title: 
   $class: 

API Tags:
Access:  public


[ Top ]
getWidth  [line 6809]

  void getWidth( [ $diff = 0]  )

Parameters:
   $diff: 

API Tags:
Access:  public


[ Top ]
get_widthheight  [line 6756]

  void get_widthheight( $w, $h  )

Parameters:
   $w: 
   $h: 

API Tags:
Access:  protected


[ Top ]
setInvalidImage  [line 6751]

  void setInvalidImage( $image  )

Parameters:
   $image: 

API Tags:
Access:  public


[ Top ]
setThumbsOptions  [line 6804]

  void setThumbsOptions( $options  )

Parameters:
   $options: 

API Tags:
Access:  public


[ Top ]
setTimthumbOptions  [line 6799]

  void setTimthumbOptions( $options  )

Parameters:
   $options: 

API Tags:
Access:  public


[ Top ]
set_src  [line 6722]

  void set_src( $src  )

Parameters:
   $src: 

API Tags:
Access:  protected


[ Top ]
_cacheremotefile  [line 6695]

  void _cacheremotefile( $remote  )

Parameters:
   $remote: 

API Tags:
Access:  protected


[ Top ]
__get  [line 6687]

  void __get( $name  )

Parameters:
   $name: 

API Tags:
Access:  public


[ Top ]
__set  [line 6682]

  void __set( $name, $value  )

Parameters:
   $name: 
   $value: 

API Tags:
Access:  public


[ Top ]

Documentation generated on Thu, 17 May 2012 01:07:20 +0200 by phpDocumentor 1.4.3