Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
Deprecated legacy methods and properties
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-alrek committed Aug 8, 2019
1 parent 4a842e6 commit bb543cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/functions/common/functions_convert.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function convert_datetime($date, $format)
/**
* Security and conversion variables
*
* @deprecated v1.1.0
* @param string $value
* @param string $type
* @param string $definedValue = ""
Expand All @@ -28,6 +29,8 @@ function convert_datetime($date, $format)
*/
function convert_to_safe_string($value, $type, $definedValue = "", $undefinedValue = "")
{
trigger_error('convert_to_safe_string is deprecated', E_USER_DEPRECATED);

switch ($type) {
case 'text':
$value = ($value != '') ? "'" . $value . "'" : 'null';
Expand Down
4 changes: 3 additions & 1 deletion src/functions/common/functions_store.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ function get_order($id)
/**
* In Stock
*
* @deprecated 1.1.0
* @deprecated v1.1.0
* @return int
*/
function in_stock()
{
trigger_error('in_stock is deprecated', E_USER_DEPRECATED);

return 1;
}

Expand Down
8 changes: 4 additions & 4 deletions src/model/StructureQueryPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@
trait DeprecatedFieldsInStructureQueryPage
{
/**
* @deprecated
* @deprecated v1.1.0
* @var int
*/
public $last_page;

/**
* @deprecated
* @deprecated v1.1.0
* @var int|null
*/
public $next_page;

/**
* @deprecated
* @deprecated v1.1.0
* @var int
*/
public $total_items;

/**
* @deprecated
* @deprecated v1.1.0
* @var int|null
*/
public $items_per_page;
Expand Down

0 comments on commit bb543cd

Please sign in to comment.