Skip to content

Instantly share code, notes, and snippets.

View alexeydemin's full-sized avatar
🎯
Focusing

Alexey Demin alexeydemin

🎯
Focusing
View GitHub Profile
SendNewsletter extends Command {
function __construct( NewsletterSender $sender )
{
$this->sender = $sender;
}
function execute()
{
$recurring = RecurringSubscription::getEmails();
$single = SingleSubscription::getEmails();
/* Considering any course has just one author */
select course.name as course_name,
author.name as author,
count(distinct section.id) as section_cnt,
count(*) as class_cnt
from course
left join author on author.id = course.author_id
left join section on section.course_id = course.id
left join class on class.section_id = section.id
<?php
class MyClass {
public $id;
public $attribute;
public $value;
function __construct($i, $a, $v)
{
$this->id = $i;
Channel managers:
1. beds24.com
2. littlehotelier.com
3. myallocator.com = cloudbeds.com -> the biggest one and the best one
4. Siteminder
5. Mappingmaster
6. AvailPro
Articles:
https://www.tnooz.com/article/eleven-tips-when-picking-the-best-channel-management-technology-for-hotels/