SHcms Tutorial

SH CMS SH HTML SH PHP SH CSS SH Javascript SH Plug-ins (APPS) SH Template SH Suites SH Projects SH Admin Panel SH Install
SHcms / plug-in / Tasks
Last modi. : 28-February-2025 14:20:11

List of tasks

Codename : Tasks
Used on Suite :
Used on Project : HR.SiD


P\Tasks\listing()
Dsecription:
Ye listing() function ek PHP function hai jo shpl_tasks naam ke database table se "ToDo" status wale tasks ko fetch karne ke liye likha gaya hai. Is function ka explanation neeche diya gaya hai:
Returns:
Array
(
    [num] => 2
    [data] => Array
        (
            [0] => Array
                (
                    [id] => 1
                    [task] => "Complete project report"
                    [Status] => "ToDo"
                )

            [1] => Array
                (
                    [id] => 2
                    [task] => "Fix website bug"
                    [Status] => "ToDo"
                )
        )
)
P\Tasks\add()
Dsecription:
ye function task add karne ke kaam ata hai
Parameters:
array(
	"Title"=>"Task Title",
	"Note"=>"Task Note"
)
Returns:
Array
(
    [status] => OK / Error
)
P\Tasks\info()
Dsecription:
single task ki information
Parameters:
array(
	"Id"=>"Task Id"
)
P\Tasks\complete()
Dsecription:
jab task complete ho jata hai.
Parameters:
array(
	"Id"=>"Task Id"
)
Returns:
Full row data table (shpl_tasks) me se :
Array
(
    "record"=>"", // (int) how much records found
	"data"=>[ (all colums as array ) ]
)

admin

MySQL Table (2) Script Update : 2021-Jun-25
Table : shpl_tasks
ColumDescription
Id INT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
Status VARCHAR(255) NOT NULL
Title VARCHAR(255) NOT NULL
InsertDatetime DATETIME() NOT NULL
Note TEXT() NOT NULL
InsertBy[users]Id VARCHAR(255) NOT NULL
Tags TEXT() NOT NULL
Table : shpl_task_logs
ColumDescription
Id INT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY
[shpl_tasks]Id VARCHAR(20) NOT NULL
InsertDateTime DATETIME() NOT NULL
Note TEXT() NOT NULL
InsertBy[users]Id VARCHAR(255) NOT NULL