Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
QUIQQER
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
163
Issues
163
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QUIQQER
QUIQQER
Commits
a14f2abc
Verified
Commit
a14f2abc
authored
Dec 13, 2018
by
Jan Wennrich
🏡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: WIP: new media utils features skeletons
parent
0d3dba2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
0 deletions
+74
-0
lib/QUI/Projects/Media/Utils.php
lib/QUI/Projects/Media/Utils.php
+74
-0
No files found.
lib/QUI/Projects/Media/Utils.php
View file @
a14f2abc
...
...
@@ -817,4 +817,78 @@ class Utils
/* @var $File \QUI\Projects\Media\Image */
return
sha1_file
(
$File
->
getFullPath
());
}
/**
* Counts and returns the number of folders for a project.
*
* @param QUI\Projects\Project $Project
*
* @return int
*/
public
static
function
countFoldersForProject
(
QUI
\
Projects\Project
$Project
)
{
// TODO: implement countFoldersForProject() logic
return
-
1
;
}
/**
* Counts and returns the number of files for a project.
*
* @param QUI\Projects\Project $Project
*
* @return int
*/
public
static
function
countFilesForProject
(
QUI
\
Projects\Project
$Project
)
{
// TODO: implement countFilesForProject() logic
return
-
1
;
}
/**
* Returns the size of the given project's media folder in bytes
*
* @param QUI\Projects\Project $Project
*
* @return int
*/
public
static
function
getMediaFolderSizeForProject
(
QUI
\
Projects\Project
$Project
)
{
// TODO: implement getMediaFolderSizeForProject() logic
return
-
1
;
}
/**
* Returns the size of the given project's media cache folder in bytes
*
* @param QUI\Projects\Project $Project
*
* @return int
*/
public
static
function
getMediaCacheFolderSizeForProject
(
QUI
\
Projects\Project
$Project
)
{
// TODO: implement getMediaCacheFolderSizeForProject() logic
return
-
1
;
}
/**
* Counts and returns all the different types of files for project.
*
* @param QUI\Projects\Project $Project
*
* @return array - the array's keys are the file types and their values are their amounts
*/
public
static
function
countFiletypesForProject
(
QUI
\
Projects\Project
$Project
)
{
// TODO: implement countFiletypesForProject() logic
return
[];
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment