LEPTON CMS 7.0.0
feel free to keep it strictly simple...
Loading...
Searching...
No Matches
LEPTON_order Class Reference

Public Member Functions

 __construct (string $table, string $order_field='position', string $id_field='id', string $common_field='')
 
 move_up (int $id)
 
 move_down (int $id)
 
 get_new (string $cf_value='')
 
 clean (string|int $cf_value='')
 

Static Public Member Functions

static getInstance (string $table, string $order_field='position', string $id_field='id', string $common_field='')
 

Data Fields

string $errorMessage = ''
 

Static Public Attributes

static $instance
 

Detailed Description

This file is part of LEPTON Core, released under the GNU GPL Please see LICENSE and COPYING files in your package for details, specially for terms and warranties.

NOTICE:LEPTON CMS Package has several different licenses. Please see the individual license in the header of each single file or info.php of modules and templates.

Author
LEPTON Project

Definition at line 21 of file lepton_order.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( string  $table,
string  $order_field = 'position',
string  $id_field = 'id',
string  $common_field = '' 
)
Parameters
string$table
string$order_field
string$id_field
string$common_field

Definition at line 54 of file lepton_order.php.

Member Function Documentation

◆ clean()

clean ( string|int  $cf_value = '')

Clean ordering (should be called time by time if rows in the middle have been deleted)

Parameters
string | int$cf_value
Returns
bool

Definition at line 251 of file lepton_order.php.

◆ get_new()

get_new ( string  $cf_value = '')

Get new number for order

Parameters
string$cf_value
Returns
int

Definition at line 233 of file lepton_order.php.

◆ getInstance()

static getInstance ( string  $table,
string  $order_field = 'position',
string  $id_field = 'id',
string  $common_field = '' 
)
static
Parameters
string$table
string$order_field
string$id_field
string$common_field
Returns
object

Definition at line 39 of file lepton_order.php.

◆ move_down()

move_down ( int  $id)

Move a row down

Parameters
int$id
Returns
bool

Definition at line 150 of file lepton_order.php.

◆ move_up()

move_up ( int  $id)

Move a row up

Parameters
int$id
Returns
bool

Definition at line 68 of file lepton_order.php.

Field Documentation

◆ $errorMessage

string $errorMessage = ''

Definition at line 28 of file lepton_order.php.

◆ $instance

$instance
static

Definition at line 30 of file lepton_order.php.


The documentation for this class was generated from the following file: