initial commit

This commit is contained in:
2026-06-29 14:51:56 +06:00
commit c5c4b7c509
2400 changed files with 725568 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
class Agent extends Entity
{
protected $_accessible = [
'first_name' => true,
'last_name' => true,
'email' => true,
'phone_number' => true,
'agency_name' => true,
'hire_date' => true,
'address' => true,
'country_name' => true,
'status' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,33 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Category Entity
*
* @property int $id
* @property string $name
* @property \Cake\I18n\Time $created_on
* @property \Cake\I18n\Time $modified_on
* @property int $status
*
* @property \App\Model\Entity\SubCategory[] $sub_categories
*/
class Category extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
'id' => false
];
}

View File

@@ -0,0 +1,40 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* CheckList Entity
*
* @property int $id
* @property string $name
* @property string|null $description
* @property int $status
* @property int|null $sequence
* @property int|null $created_by_id
* @property int|null $updated_by_id
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class CheckList extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'name' => true,
'description' => true,
'status' => true,
'sequence' => true,
'created_by_id' => true,
'updated_by_id' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,44 @@
<?php
namespace App\Model\Entity;
use App\Auth\CmsPasswordHasher;
use Cake\ORM\Entity;
/**
* Cmsuser Entity.
*
* @property int $id
* @property string $language
* @property string $username
* @property string $password
* @property string $email
* @property string $reset_password_token
* @property \Cake\I18n\Time $created_on
* @property \Cake\I18n\Time $updated_on
* @property bool $status
* @property int $company_id
* @property \App\Model\Entity\Company $company
*/
class Cmsuser extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
'id' => false,
];
protected function _setPassword($value)
{
$hasher = new CmsPasswordHasher();
return $hasher->hash($value);
}
}

View File

@@ -0,0 +1,47 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* CmsuserStatus Entity
*
* @property int $id
* @property int $cmsuser_id
* @property int $is_account_profile_set
* @property int $is_first_client_added
* @property int $is_credit_report_uploaded
* @property int $is_send_first_letter
* @property int $is_automation
* @property int $is_personalized_domain
* @property int $is_agreement
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*
* @property \App\Model\Entity\Cmsuser $cmsuser
*/
class CmsuserStatus extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'cmsuser_id' => true,
'is_account_profile_set' => true,
'is_first_client_added' => true,
'is_credit_report_uploaded' => true,
'is_send_first_letter' => true,
'is_automation' => true,
'is_personalized_domain' => true,
'is_agreement' => true,
'created_at' => true,
'updated_at' => true,
'cmsuser' => true
];
}

View File

@@ -0,0 +1,55 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Company Entity.
*
* @property int $id
* @property string $name
* @property string $cname
* @property string $cemail
* @property string $address1
* @property string $address2
* @property string $postcode
* @property string $phone
* @property string $email
* @property string $fax
* @property string $city
* @property string $state
* @property string $country
* @property string $confederation
* @property string $general_secretary
* @property string $logo
* @property string $registration_no
* @property string $ranking_w
* @property string $ranking_m
* @property string $tax_no
* @property int $no_of_employees
* @property bool $cmmi_level
* @property float $yearly_revenue
* @property bool $status
* @property \Cake\I18n\Time $created_on
* @property \Cake\I18n\Time $modified_on
* @property \App\Model\Entity\Cmsuser[] $cmsusers
* @property \App\Model\Entity\Role[] $roles
* @property \App\Model\Entity\Usergroup[] $usergroups
*/
class Company extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
'id' => false,
];
}

View File

@@ -0,0 +1,66 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Course Entity
*
* @property int $id
* @property string $name
* @property int $course_category_id
* @property int $qualification_type_id
* @property int $level
* @property double $total_credit
* @property string $code
* @property string $progression_routes
* @property int $availability_type
* @property int $delivery_mode
* @property int $duration
* @property int|null $qualification_time
* @property string|null $centre_specification_link
* @property string|null $image_path
* @property string $assessment
* @property string|null $description
* @property int|null $status
* @property int $accreditation_status
* @property int|null $created_by
* @property int|null $updated_by
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class Course extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'name' => true,
'course_category_id' => true,
'qualification_type_id' => true,
'level'=>true,
'total_credit'=>true,
'code'=>true,
'progression_routes'=>true,
'availability_type'=>true,
'delivery_mode'=>true,
'duration'=>true,
'assessment'=>true,
'description' => true,
'qualification_time' => true,
'centre_specification_link' => true,
'accreditation_status' => true,
'image_path' => true,
'status' => true,
'created_by' => true,
'updated_by' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
class CourseCategory extends Entity
{
protected $_accessible = [
'name' => true,
'description' => true,
'status' => true,
'created_by' => true,
'updated_by' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
class CourseSemester extends Entity
{
protected $_accessible = [
'course_id' => true,
'semester_id' => true,
'created_by' => true,
'updated_by' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
class CourseSemesterFee extends Entity
{
protected $_accessible = [
'course_id' => true,
'online_fee' => true,
'discount' => true,
'monthly_installments' => true,
'upfront_deposit' => true,
'blended_fee' => true,
'certificate_fee' => true,
'status' => true,
'created_by' => true,
'updated_by' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
class CourseSemesterSubject extends Entity
{
protected $_accessible = [
'course_id' => true,
'course_semester_id' => true,
'title' => true,
'level' => true,
'credit' => true,
'is_mandatory' => true,
'status' => true,
'created_by' => true,
'updated_by' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,69 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* EmailQueue Entity
*
* @property string $id
* @property string $member_id
* @property string $email
* @property string|null $from_name
* @property string|null $from_email
* @property string $subject
* @property string $config
* @property string $template
* @property string $layout
* @property string $theme
* @property string $format
* @property string $template_vars
* @property string|null $headers
* @property bool $sent
* @property bool $locked
* @property int $send_tries
* @property \Cake\I18n\Time|null $send_at
* @property \Cake\I18n\Time $created
* @property \Cake\I18n\Time|null $modified
* @property string|null $attachments
*
* @property \App\Model\Entity\Member $member
* @property \App\Model\Entity\Phinxlog[] $phinxlog
*/
class EmailQueue extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'member_id' => true,
'email' => true,
'from_name' => true,
'from_email' => true,
'subject' => true,
'config' => true,
'template' => true,
'layout' => true,
'theme' => true,
'format' => true,
'template_vars' => true,
'headers' => true,
'sent' => true,
'locked' => true,
'send_tries' => true,
'send_at' => true,
'created' => true,
'modified' => true,
'attachments' => true,
'member' => true,
'phinxlog' => true,
'exception' => true,
'parent_id' => true,
];
}

View File

@@ -0,0 +1,44 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* FeedBack Entity
*
* @property int $id
* @property string $name
* @property string $email
* @property string|null $phone_number
* @property string|null $subject
* @property string $message
* @property \Cake\I18n\Time|null $inquiry_date
* @property int|null $status
* @property string|null $response_text
* @property \Cake\I18n\Time|null $response_date
* @property \Cake\I18n\Time|null $created_at
*/
class FeedBack extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'name' => true,
'email' => true,
'phone_number' => true,
'subject' => true,
'message' => true,
'inquiry_date' => true,
'status' => true,
'response_text' => true,
'response_date' => true,
'created_at' => true,
];
}

View File

@@ -0,0 +1,38 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* GlobalConfiguration Entity.
*
* @property int $id
* @property int $device_type
* @property string $latest_version
* @property string $terms_of_use_url
* @property int $ticket_to_tokens_rate
* @property int $max_ability_to_save_content
* @property int $max_ability_to_unlock_content
* @property int $ticket_required_per_hour_to_unlock
* @property int $login_to_app_points
* @property \Cake\I18n\Time $released_date
* @property \Cake\I18n\Time $modified_on
* @property int $faq_latest_version
*/
class GlobalConfiguration extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
'id' => false,
];
}

View File

@@ -0,0 +1,36 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* LetterSentHistory Entity
*
* @property int $id
* @property int $report_type_id
* @property int $report_format_id
* @property int $student_id
* @property string $student_email
* @property string $letter_file_path
* @property \Cake\I18n\Time $sent_date
* @property int|null $created_by_id
* @property int|null $updated_by_id
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class LetterSentHistory extends Entity
{
protected $_accessible = [
'report_type_id' => true,
'report_format_id' => true,
'student_id' => true,
'student_email' => true,
'sent_date' => true,
'letter_file_path' => true,
'created_by_id' => true,
'updated_by_id' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* LetterSentHistory Entity
*
* @property int $id
* @property int $letter_sent_history_id
* @property int $column_value
* @property int|null $created_by_id
* @property int|null $updated_by_id
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class LetterSentHistoryDetail extends Entity
{
protected $_accessible = [
'letter_sent_history_id' => true,
'column_value' => true,
'created_by_id' => true,
'updated_by_id' => true,
'created_at' => true,
'updated_at' => true,
];
}

43
src/Model/Entity/Log.php Normal file
View File

@@ -0,0 +1,43 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Log Entity
*
* @property int $id
* @property int $member_id
* @property int $client_id
* @property int $status
* @property int $action
* @property string|null $source
* @property \Cake\I18n\Time|null $created_on
* @property \Cake\I18n\Time|null $modified_on
*
* @property \App\Model\Entity\Member $member
* @property \App\Model\Entity\Client $client
*/
class Log extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'member_id' => true,
'client_id' => true,
'status' => true,
'action' => true,
'source' => true,
'created_on' => true,
'modified_on' => true,
'member' => true,
'client' => true
];
}

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Module Entity.
*
* @property int $id
* @property string $module_name
*/
class Module extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
//'id' => false,
];
}

View File

@@ -0,0 +1,36 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Notification Entity
*
* @property int $id
* @property int $user_id
* @property string $from_message
* @property \Cake\I18n\Time $from_datetime
* @property string $to_message
* @property \Cake\I18n\Time $to_datetime
* @property int $is_replied
* @property string $ip
*
* @property \App\Model\Entity\User $user
*/
class Notification extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
'id' => false
];
}

View File

@@ -0,0 +1,36 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Package Entity
*
* @property int $id
* @property string $name
* @property \Cake\I18n\Time $created_on
* @property \Cake\I18n\Time $modified_on
* @property int $status
*
* @property \App\Model\Entity\Cmsuser[] $cmsusers
* @property \App\Model\Entity\Order[] $orders
* @property \App\Model\Entity\PackageForm[] $package_forms
* @property \App\Model\Entity\Subscription[] $subscriptions
*/
class Package extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
'id' => false
];
}

30
src/Model/Entity/Page.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Page Entity.
*
* @property int $id
* @property int $sub_module_id
* @property \App\Model\Entity\SubModule $sub_module
* @property string $name
*/
class Page extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
//'id' => false,
];
}

View File

@@ -0,0 +1,48 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* PassportDetails Entity
*
* @property int $id
* @property int $student_id
* @property string $passport_no
* @property string|null $verification_link
* @property string|null $verification_code_img_path
* @property string|null $visa_type
* @property double $living_costs
* @property double $total_fees
* @property int $duration
* @property int|null $created_by_id
* @property int|null $updated_by_id
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class PassportDetail extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'student_id' => true,
'passport_no' => true,
'verification_link' => true,
'verification_code_img_path' => true,
'visa_type' => true,
'living_costs' => true,
'total_fees' => true,
'duration' => true,
'created_by_id' => true,
'updated_by_id' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,70 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Personalize Entity
*
* @property int $id
* @property int $member_id
* @property int $company_id
* @property int $is_smtp
* @property string|null $username
* @property string|null $password
* @property int|null $smtp_port
* @property string|null $smtp_host
* @property string|null $smtp_from
* @property string|null $email_signature
* @property string $domain_type
* @property int $is_www
* @property string|null $domain
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
* @property string|null $header
* @property string|null $footer
*
* @property \App\Model\Entity\Member $member
* @property \App\Model\Entity\Company $company
*/
class Personalize extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'member_id' => true,
'company_id' => true,
'is_smtp' => true,
'username' => true,
'password' => true,
'smtp_port' => true,
'smtp_host' => true,
'smtp_from' => true,
'email_signature' => true,
'domain_type' => true,
'is_www' => true,
'domain' => true,
'created_at' => true,
'updated_at' => true,
'header' => true,
'footer' => true,
'member' => true,
'company' => true,
];
/**
* Fields that are excluded from JSON versions of the entity.
*
* @var array
*/
protected $_hidden = [
'password',
];
}

46
src/Model/Entity/Plan.php Normal file
View File

@@ -0,0 +1,46 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Plan Entity
*
* @property int $id
* @property string $name
* @property float $price
* @property string $stripe_plan_id
* @property int $is_default_plan
* @property int $package_id
* @property int $download_status
* @property \Cake\I18n\Time $created_on
* @property \Cake\I18n\Time $modified_on
*
* @property \App\Model\Entity\StripePlan $stripe_plan
* @property \App\Model\Entity\Package $package
*/
class Plan extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'name' => true,
'price' => true,
'stripe_plan_id' => true,
'is_default_plan' => true,
'package_id' => true,
'download_status' => true,
'created_on' => true,
'modified_on' => true,
'stripe_plan' => true,
'package' => true
];
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
class QualificationType extends Entity
{
protected $_accessible = [
'name' => true,
'description' => true,
'status' => true,
'created_by' => true,
'updated_by' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,55 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* RegistrationPaymentEntity
*
* @property int $id
* @property int $student_id
* @property int $letter_type
* @property double $registration_fee
* @property double $tuition_fees
* @property double $total_fees
* @property double $total_fees_paid
* @property double $outstanding_fees
* @property string|null $bank_details
* @property string|null $iban
* @property string|null $account_no
* @property int $status
* @property int|null $created_by_id
* @property int|null $updated_by_id
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class RegistrationPayment extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'student_id' => true,
'letter_type' => true,
'registration_fee' => true,
'tuition_fees' => true,
'total_fees_paid' => true,
'total_fees' => true,
'outstanding_fees' => true,
'bank_details' => true,
'iban' => true,
'account_no' => true,
'status' => true,
'created_by_id' => true,
'updated_by_id' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,46 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* ReportFormat Entity
*
* @property int $id
* @property int $report_format_type_id
* @property string $name
* @property string|null $content
* @property string|null $file_name
* @property string|null $file_path
* @property string|null $language
* @property int $status
* @property int|null $created_by_id
* @property int|null $updated_by_id
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class ReportFormat extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'report_format_type_id' => true,
'name' => true,
'content' => true,
'file_name' => true,
'file_path' => true,
'language' => true,
'status' => true,
'created_by_id' => true,
'updated_by_id' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,44 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* ReportFormatGenerationHistory Entity
*
* @property int $id
* @property int $report_format_id
* @property string $name
* @property string $receiver_emails
* @property string|null $file_path
* @property \Cake\I18n\Time|null $expiration_at
* @property int $status
* @property int|null $created_by_id
* @property int|null $updated_by_id
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class ReportFormatGenerationHistory extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'report_format_id' => true,
'name' => true,
'receiver_emails' => true,
'file_path' => true,
'expiration_at' => true,
'status' => true,
'created_by_id' => true,
'updated_by_id' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,40 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* ReportFormatType Entity
*
* @property int $id
* @property string $name
* @property string|null $description
* @property int $status
* @property int|null $sequence
* @property int|null $created_by_id
* @property int|null $updated_by_id
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class ReportFormatType extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'name' => true,
'description' => true,
'status' => true,
'sequence' => true,
'created_by_id' => true,
'updated_by_id' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,44 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* ReportFormatVariable Entity
*
* @property int $id
* @property int $report_format_id
* @property string $variable_name
* @property string $data_type
* @property int $is_mandatory
* @property int $status
* @property int|null $created_by_id
* @property int|null $updated_by_id
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class ReportFormatVariable extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'report_format_id' => true,
'variable_name' => true,
'table_name' => true,
'column_name' => true,
'data_type' => true,
'is_mandatory' => true,
'status' => true,
'created_by_id' => true,
'updated_by_id' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,42 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* ReportFormatVariableValue Entity
*
* @property int $id
* @property int $report_format_id
* @property int $report_format_variable_id
* @property int $report_format_generation_history_id
* @property string|null $value
* @property int $status
* @property int|null $created_by_id
* @property int|null $updated_by_id
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class ReportFormatVariableValue extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'report_format_id' => true,
'report_format_variable_id' => true,
'report_format_generation_history_id' => true,
'value' => true,
'status' => true,
'created_by_id' => true,
'updated_by_id' => true,
'created_at' => true,
'updated_at' => true,
];
}

34
src/Model/Entity/Role.php Normal file
View File

@@ -0,0 +1,34 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Role Entity.
*
* @property int $id
* @property string $title
* @property \Cake\I18n\Time $created_on
* @property \Cake\I18n\Time $modified_on
* @property bool $status
* @property int $company_id
* @property \App\Model\Entity\Company $company
* @property \App\Model\Entity\RolePage[] $role_pages
*/
class Role extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
'id' => false,
];
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
class Semester extends Entity
{
protected $_accessible = [
'name' => true,
'description' => true,
'status' => true,
'created_by' => true,
'updated_by' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,41 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* SendEmailToClient Entity
*
* @property int $id
* @property int $sender_id
* @property int $sender_type
* @property string $to_email
* @property string $email_subject
* @property string $email_content
* @property \Cake\I18n\Time $created_at
* @property \Cake\I18n\Time|null $updated_at
*
* @property \App\Model\Entity\Sender $sender
*/
class SendEmailToClient extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'sender_id' => true,
'sender_type' => true,
'to_email' => true,
'email_subject' => true,
'email_content' => true,
'created_at' => true,
'updated_at' => true,
'sender' => true,
];
}

View File

@@ -0,0 +1,42 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Session Entity
*
* @property int $id
* @property string $name
* @property \Cake\I18n\Time $start_date
* @property \Cake\I18n\Time $end_date
* @property int|null $duration_month
* @property int|null $status
* @property int $created_by
* @property int $updated_by
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class Session extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'name' => true,
'start_date' => true,
'end_date' => true,
'duration_month' => true,
'status' => true,
'created_by' => true,
'updated_by' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,36 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Setting Entity.
*
* @property int $id
* @property int $device_type
* @property string $latest_version
* @property string $terms_of_use_url
* @property string $yg_youtube_url
* @property string $yg_facebook_url
* @property string $yg_twitter_url
* @property \Cake\I18n\Time $released_date
* @property \Cake\I18n\Time $modified_on
* @property int $faq_latest_version
*/
class Setting extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
'id' => false,
];
}

View File

@@ -0,0 +1,38 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* SoftwareVersion Entity
*
* @property int $id
* @property string $title
* @property string|null $descripton
* @property string|null $video_link
* @property int $status
* @property \Cake\I18n\Time $release_date
* @property \Cake\I18n\Time $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class SoftwareVersion extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'title' => true,
'descripton' => true,
'video_link' => true,
'status' => true,
'release_date' => true,
'created_at' => true,
'updated_at' => true
];
}

View File

@@ -0,0 +1,116 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Student Entity
*
* @property int $id
* @property int $current_checklist_id
* @property string $reference_number
* @property string $title
* @property string $first_name
* @property string $surname
* @property \Cake\I18n\Date $date_of_birth
* @property \Cake\I18n\Date $last_join_date
* @property int|null $mod_of_study
* @property string $birth_place
* @property string $gender
* @property string $nationality
* @property string $passport_number
* @property string $email
* @property string $phone_number
* @property string $address1
* @property string $address2
* @property string $city
* @property string $state
* @property string $zip_code
* @property string $country
* @property string $emergency_contact_name
* @property string $emergency_contact_relation
* @property string $emergency_contact_email
* @property string $emergency_contact_phone_number
* @property string $speak_language
* @property string $education_name1
* @property string $education_year1
* @property string $education_institution1
* @property string $education_name2
* @property string $education_year2
* @property string $education_institution2
* @property string $education_name3
* @property string $education_year3
* @property string $education_institution3
* @property string|null $employer_name
* @property string|null $position
* @property int|null $status
* @property int|null $created_by
* @property int|null $updated_by
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
* @property string|null $referring_agent_name
* @property int|null $referring_agent_id
*
* @property \App\Model\Entity\StudentCourse[] $student_courses
* @property \App\Model\Entity\StudentSession[] $student_sessions
*/
class Student extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'current_checklist_id' => true,
'reference_number' => true,
'title' => true,
'first_name' => true,
'surname' => true,
'date_of_birth' => true,
'birth_place' => true,
'gender' => true,
'nationality' => true,
'passport_number' => true,
'email' => true,
'phone_number' => true,
'address1' => true,
'address2' => true,
'city' => true,
'state' => true,
'zip_code' => true,
'country' => true,
'emergency_contact_name' => true,
'emergency_contact_relation' => true,
'emergency_contact_email' => true,
'emergency_contact_phone_number' => true,
'speak_language' => true,
'education_name1' => true,
'education_year1' => true,
'education_institution1' => true,
'education_name2' => true,
'education_year2' => true,
'education_institution2' => true,
'education_name3' => true,
'education_year3' => true,
'education_institution3' => true,
'employer_name' => true,
'position' => true,
'status' => true,
'created_by' => true,
'updated_by' => true,
'created_at' => true,
'updated_at' => true,
'student_courses' => true,
'student_sessions' => true,
'mod_of_study' => true,
'last_join_date' => true,
'referring_agent_id' => true,
'referring_agent_name' => true
];
}

View File

@@ -0,0 +1,36 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* StudentCheckList Entity
*
* @property int $id
* @property int $student_id
* @property int $checklist_id
* @property int|null $created_by_id
* @property int|null $updated_by_id
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class StudentCheckList extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'student_id' => true,
'checklist_id' => true,
'created_by_id' => true,
'updated_by_id' => true,
'created_at' => true,
'updated_at' => true,
];
}

View File

@@ -0,0 +1,43 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* StudentCourse Entity
*
* @property int $id
* @property int $student_id
* @property int $course_id
* @property \Cake\I18n\Date|null $enrollment_date
* @property int|null $created_by
* @property int|null $updated_by
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*
* @property \App\Model\Entity\Student $student
* @property \App\Model\Entity\Course $course
*/
class StudentCourse extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'student_id' => true,
'course_id' => true,
'enrollment_date' => true,
'created_by' => true,
'updated_by' => true,
'created_at' => true,
'updated_at' => true,
'student' => true,
'course' => true,
];
}

View File

@@ -0,0 +1,41 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* StudentSession Entity
*
* @property int $id
* @property int $student_id
* @property int $session_id
* @property int|null $created_by
* @property int|null $updated_by
* @property \Cake\I18n\Time|null $created_at
* @property \Cake\I18n\Time|null $updated_at
*
* @property \App\Model\Entity\Student $student
* @property \App\Model\Entity\Session $session
*/
class StudentSession extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'student_id' => true,
'session_id' => true,
'created_by' => true,
'updated_by' => true,
'created_at' => true,
'updated_at' => true,
'student' => true,
'session' => true,
];
}

View File

@@ -0,0 +1,35 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* SubCategory Entity
*
* @property int $id
* @property string $name
* @property int $category_id
* @property \Cake\I18n\Time $created_on
* @property \Cake\I18n\Time $modified_on
* @property int $status
*
* @property \App\Model\Entity\Category $category
* @property \App\Model\Entity\Form[] $forms
*/
class SubCategory extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
'id' => false
];
}

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* SubModule Entity.
*
* @property int $id
* @property int $module_id
* @property \App\Model\Entity\Module $module
* @property string $name
* @property \App\Model\Entity\Page[] $pages
*/
class SubModule extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
//'id' => false,
];
}

View File

@@ -0,0 +1,39 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Uploadmedia Entity
*
* @property int $id
* @property int $client_id
* @property int $rtg_letter_image_id
* @property string $image_path
* @property \Cake\I18n\Time $created_on
* @property \Cake\I18n\Time $modified_on
*
* @property \App\Model\Entity\Client $client
* @property \App\Model\Entity\RtgLetterImage $rtg_letter_image
*/
class Uploadmedia extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'client_id' => true,
'rtg_letter_image_id' => true,
'image_path' => true,
'created_on' => true,
'modified_on' => true,
'client' => true,
'rtg_letter_image' => true
];
}

69
src/Model/Entity/User.php Normal file
View File

@@ -0,0 +1,69 @@
<?php
namespace App\Model\Entity;
use App\Auth\CmsPasswordHasher;
use Cake\ORM\Entity;
/**
* User Entity.
*
* @property int $id
* @property string $nickname
* @property int $user_type
* @property int $registration_type
* @property string $social_id
* @property \App\Model\Entity\Social $social
* @property string $email
* @property string $password
* @property string $pre_lang
* @property \Cake\I18n\Time $date_of_birth
* @property string $profile_pic_url
* @property string $api_token
* @property \Cake\I18n\Time $api_token_expired_on
* @property string $is_rec_marketing_email
* @property string $is_verified
* @property int $profile_pic_modify_time
* @property int $balance_stars
* @property int $balance_tickets
* @property int $balance_tokens
* @property int $unlocking_ability
* @property \Cake\I18n\Time $created_on
* @property \Cake\I18n\Time $updated_on
* @property \App\Model\Entity\ApiToken[] $api_tokens
* @property \App\Model\Entity\Collection[] $collections
* @property \App\Model\Entity\ContentCommentLike[] $content_comment_likes
* @property \App\Model\Entity\ContentCommentReport[] $content_comment_reports
* @property \App\Model\Entity\ContentComment[] $content_comments
* @property \App\Model\Entity\ContentCommentsCopy[] $content_comments_copy
* @property \App\Model\Entity\ContentLike[] $content_likes
* @property \App\Model\Entity\FriendInvitation[] $friend_invitations
* @property \App\Model\Entity\LogEvent[] $log_events
* @property \App\Model\Entity\PaymentReceipt[] $payment_receipts
* @property \App\Model\Entity\StarActivity[] $star_activities
* @property \App\Model\Entity\TokenTransaction[] $token_transactions
* @property \App\Model\Entity\UnlockingAbilityChangeHistory[] $unlocking_ability_change_histories
* @property \App\Model\Entity\UnlockingActivity[] $unlocking_activities
*/
class User extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
'id' => false,
];
protected function _setPassword($value)
{
$hasher = new CmsPasswordHasher();
return $hasher->hash($value);
}
}

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* Usergroup Entity.
*
* @property int $id
* @property string $group_name
* @property \Cake\I18n\Time $created_on
* @property \Cake\I18n\Time $modified_on
* @property bool $status
* @property int $company_id
* @property \App\Model\Entity\Company $company
* @property \App\Model\Entity\UsergroupRole[] $usergroup_roles
*/
class Usergroup extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
'id' => false,
];
}

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* UsergroupRole Entity.
*
* @property int $id
* @property int $role_id
* @property \App\Model\Entity\Role $role
* @property int $usergroup_id
* @property \App\Model\Entity\Usergroup $usergroup
*/
class UsergroupRole extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'*' => true,
'id' => false,
];
}

View File

@@ -0,0 +1,36 @@
<?php
namespace App\Model\Entity;
use Cake\ORM\Entity;
/**
* VideoSetting Entity
*
* @property int $id
* @property string $section_name
* @property string|null $video_url
* @property \Cake\I18n\Time $created_at
* @property \Cake\I18n\Time|null $updated_at
*/
class VideoSetting extends Entity
{
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* Note that when '*' is set to true, this allows all unspecified fields to
* be mass assigned. For security purposes, it is advised to set '*' to false
* (or remove it), and explicitly make individual fields accessible as needed.
*
* @var array
*/
protected $_accessible = [
'section_name' => true,
'video_url' => true,
'sequence' => true,
'status' => true,
'created_at' => true,
'updated_at' => true,
'is_actual_section' => true,
'is_training_section' => true,
];
}