示例#1
0
文件: Image.php 项目: nessi/PartKeepr
	/**
	 * Replaces the current image with a new image.
	 * 
	 * Automatically converts from one format to PNG,
	 * which is the default when dealing with images
	 * on the platform.
	 * 
	 * @param string $path	The path to the original image
	 */
	public function replace ($path) {
		parent::replace($path);
		
		CachedImage::invalidate($this);
	}
示例#2
0
	/**
	 * Creates a new footprint attachment
	 */
	public function __construct () {
		parent::__construct();
		$this->setType("FootprintAttachment");
	}