<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
/**
* Given a zip file which contains a single root directory, determine the root's name.
*
+ * @param ZipArchive $zip
+ *
* @return mixed; FALSE if #root level items !=1; otherwise, the name of base dir
*/
static public function findBaseDirName(ZipArchive $zip) {
/**
* Given a zip file, find all directory names in the root
*
+ * @param ZipArchive $zip
+ *
* @return array(string), no trailing /
*/
static public function findBaseDirs(ZipArchive $zip) {
/**
* Determine the name of the folder within a zip
*
+ * @param ZipArchive $zip
+ * @param $expected
+ *
* @return string or FALSE
*/
static public function guessBasedir(ZipArchive $zip, $expected) {