tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Class: Release_Zip_Creator

Source Location: /modules_manager/release_zip_creator.class.php

Class Release_Zip_Creator

Class Overview

Creates ZIP archive for module release

Located in /modules_manager/release_zip_creator.class.php [line 19]

Tangra_Class
   |
   --Release_Zip_Creator

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Tangra_Class

Tangra_Class::get_class_name()
Alias of get_class(). Exist because of historical reasons.
Tangra_Class::__set()
Overides PHP built-in method and just throws exception if called. Purpose - to "forbid" autosetting of nonexisting class properties.

[ Top ]
Method Summary
static boolean   generate_file()   Creates ZIP archive for module release

[ Top ]
Methods
static method generate_file  [line 30]

  static boolean generate_file( string $source_dir, string $file_path, integer $cut, string $prefix, octal $chmod  )

Creates ZIP archive for module release

Parameters:
string   $source_dir:  Source dir that contains release files
string   $file_path:  Path to target Zip file to be created
integer   $cut:  Path of source files will be cut from this pos (i.e. path in archive will be what is after $cut)
string   $prefix:  Paths in archive will be prefixed with this value
octal   $chmod:  Created Zip file will be chmoded to this value

API Tags:
Return:  Returns true on success, on failure - false
Access:  public


[ Top ]