1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-11 07:34:22 +02:00

Flextype Core: Code fixes according to the phpDocumentor

This commit is contained in:
Awilum
2019-01-08 17:50:06 +03:00
parent 778da95baa
commit 682f53c258
4 changed files with 21 additions and 13 deletions

View File

@@ -248,7 +248,7 @@ class Cache
* @access public
* @param string $id The cache id.
* @param mixed $data The cache entry/data.
* @param int $lifeTime The lifetime in number of seconds for this cache entry.
* @param int $lifetime The lifetime in number of seconds for this cache entry.
* If zero (the default), the entry never expires (although it may be deleted from the cache
* to make place for other entries).
*/

View File

@@ -149,9 +149,9 @@ class Entries
* $entry = Entries::getEntry('projects');
*
* @access public
* @param string $url Page url
* @param bool $raw Raw or not raw content
* @param bool $hidden Get hidden entries
* @param string $url Page url.
* @param bool $raw Parse content or raw content without parsing.
* @param bool $hidden Get hidden entries.
* @return array|string
*/
public static function getEntry(string $url = '', bool $raw = false, bool $hidden = false)
@@ -206,11 +206,13 @@ class Entries
* $entries = Entries::getEntries('projects', false, 'date', 'DESC');
*
* @access public
* @param string $url Page url
* @param bool $raw Raw or not raw content
* @param string $order_by Order type
* @param int $offset Offset
* @param int $length Length
* @param string $url Page url.
* @param string $order_by Order by specific entry field.
* @param string $order_type Order type: DESC or ASC
* @param int $offset Offset
* @param int $length Length
* @param bool $multilevel Get nested entries or not.
* @param bool $raw Parse content or raw content without parsing.
* @return array
*/
public static function getEntries(string $url = '', string $order_by = 'date', string $order_type = 'DESC', int $offset = null, int $length = null, bool $multilevel = false, bool $raw = false) : array

View File

@@ -214,7 +214,7 @@ class Images
* @access public
* @param string $path Image path
* @param array $params Image params
* @return string Returns the image url
* @return string
*/
public static function getImageUrl($path, array $params)
{
@@ -232,9 +232,10 @@ class Images
* http://glide.thephpleague.com/1.0/api/quick-reference/
*
* @access public
* @param string $path Image path
* @param array $params Image params
* @return string Returns the image url
* @param string $path Image path
* @param array $params Image params
* @param array $attributes Image html attributes
* @return string
*/
public static function getImage($path, array $params, array $attributes = [])
{

View File

@@ -198,6 +198,11 @@ class Themes
/**
* _strrevpos
*
* @param string $instr instr
* @param string $needle needle
*
* @return bool
*/
private static function _strrevpos($instr, $needle)
{