BPMN Project Import chages to import alll workflow properties data

This commit is contained in:
Erik Amaru Ortiz
2014-03-27 19:11:11 -04:00
parent edaf69ec0e
commit 00fd862056
8 changed files with 187 additions and 34 deletions

View File

@@ -125,4 +125,25 @@ class Common
return $result;
}
public static function mk_dir($strPath, $rights = 0777)
{
$folder_path = array($strPath);
$oldumask = umask(0);
while (!@is_dir(dirname(end($folder_path)))
&& dirname(end($folder_path)) != '/'
&& dirname(end($folder_path)) != '.'
&& dirname(end($folder_path)) != ''
) {
array_push($folder_path, dirname(end($folder_path)));
}
while ($parent_folder_path = array_pop($folder_path)) {
if (! @is_dir($parent_folder_path)) {
if (! @mkdir($parent_folder_path, $rights)) {
umask($oldumask);
}
}
}
}
}