PHP hook, building hooks in your application
Introduction
One of the real challenges in building any type of framework, core or application is making it possible for the developers to hook into the business logic at specific points. Since PHP is not event based, nor it works with interrupts you have to come up an alternative.
The test case
Lets assume we are the main developers of a webshop framework. Programmers can use our framework to build complete webshops. Programmers can manage the orders that are placed on the webshop with the order class. The order class is part of our framework and we don’t want it to be extended by any programmer. However we don’t want to limit to programmers in their possibilities to hook into the orders process.
For example programmers should be able to send an email to the webshopowner if an order changes from one specific delivery status to another. This functionality is not part of the default behavior in our framework and is custom for the progammers webshop implementation.
Like said before, PHP doesn’t provide interrupts or real events so we need to come up with another way to implement hooks into our application. Lets take a look at the observer pattern.
Implementing the Observer pattern
The observer pattern is a design-pattern that describes a way for objects to be notified to specific state-changes in objects of the application.
For the first implementation we can use SPL. The SPL provides in two simple objects:
SPLSubject
- attach (new observer to attach)
- detach (existing observer to detach)
- notify (notify all observers)
SPLObserver
- update (Called from the subject (i.e. when it’s value has changed).
iOrderRef = $iOrderRef;
// Get order information from the database or an other resources
$this->iStatus = Order::STATUS_SHIPPED;
}
/**
* Attach an observer
*
* @param SplObserver $oObserver
* @return void
*/
public function attach(SplObserver $oObserver)
{
$sHash = spl_object_hash($oObserver);
if (isset($this->aObservers[$sHash])) {
throw new Exception('Observer is already attached');
}
$this->aObservers[$sHash] = $oObserver;
}
/**
* Detach observer
*
* @param SplObserver $oObserver
* @return void
*/
public function detach(SplObserver $oObserver)
{
$sHash = spl_object_hash($oObserver);
if (!isset($this->aObservers[$sHash])) {
throw new Exception('Observer not attached');
}
unset($this->aObservers[$sHash]);
}
/**
* Notify the attached observers
*
* @param string $sEvent, name of the event
* @param mixed $mData, optional data that is not directly available for the observers
* @return void
*/
public function notify()
{
foreach ($this->aObservers as $oObserver) {
try {
$oObserver->update($this);
} catch(Exception $e) {
}
}
}
/**
* Add an order
*
* @param array $aOrder
* @return void
*/
public function delete()
{
$this->notify();
}
/**
* Return the order reference number
*
* @return int
*/
public function getRef()
{
return $this->iOrderRef;
}
/**
* Return the current order status
*
* @return int
*/
public function getStatus()
{
return $this->iStatus;
}
/**
* Update the order status
*/
public function updateStatus($iStatus)
{
$this->notify();
// ...
$this->iStatus = $iStatus;
// ...
$this->notify();
}
}
/**
* Order status handler, observer that sends an email to secretary
* if the status of an order changes from shipped to delivered, so the
* secratary can make a phone call to our customer to ask for his opinion about the service
*
* @package Shop
*/
class OrderStatusHandler implements SplObserver
{
/**
* Previous orderstatus
* @var int
*/
protected $iPreviousOrderStatus;
/**
* Current orderstatus
* @var int
*/
protected $iCurrentOrderStatus;
/**
* Update, called by the observable object order
*
* @param Observable_Interface $oSubject
* @param string $sEvent
* @param mixed $mData
* @return void
*/
public function update(SplSubject $oSubject)
{
if(!$oSubject instanceof Order) {
return;
}
if(is_null($this->iPreviousOrderStatus)) {
$this->iPreviousOrderStatus = $oSubject->getStatus();
} else {
$this->iCurrentOrderStatus = $oSubject->getStatus();
if($this->iPreviousOrderStatus === Order::STATUS_SHIPPED && $this->iCurrentOrderStatus === Order::STATUS_DELIVERED) {
$sSubject = sprintf('Order number %d is shipped', $oSubject->getRef());
//mail('secratary@example.com', 'Order number %d is shipped', 'Text');
echo 'Mail sended to the secratary to help her remember to call our customer for a survey.';
}
}
}
}
$oOrder = new Order(26012011);
$oOrder->attach(new OrderStatusHandler());
$oOrder->updateStatus(Order::STATUS_DELIVERED);
$oOrder->delete();
?>
There are several problems with the implementation above. To most important disadvantage is that we have only one update method in our observer. In this update method we don’t know when and why we are getting notified, just that something happened. We should keep track of everything that happens in the subject. (Or use debug_backtrace… just joking, don’t even think about using it that way ever!).
Taking it a step further, events
Lets take a look at the next example, we will extend the Observer implementation with some an additional parameter for the eventname that occured.
Finishing up, optional data
iOrderRef = $iOrderRef;
// Get order information from the database or something else...
$this->iStatus = Order::STATUS_SHIPPED;
}
/**
* Attach an observer
*
* @param Observer_Interface $oObserver
* @return void
*/
public function attachObserver(Observer_Interface $oObserver)
{
$sHash = spl_object_hash($oObserver);
if (isset($this->aObservers[$sHash])) {
throw new Exception('Observer is already attached');
}
$this->aObservers[$sHash] = $oObserver;
}
/**
* Detach observer
*
* @param Observer_Interface $oObserver
* @return void
*/
public function detachObserver(Observer_Interface $oObserver)
{
$sHash = spl_object_hash($oObserver);
if (!isset($this->aObservers[$sHash])) {
throw new Exception('Observer not attached');
}
unset($this->aObservers[$sHash]);
}
/**
* Notify the attached observers
*
* @param string $sEvent, name of the event
* @param mixed $mData, optional data that is not directly available for the observers
* @return void
*/
public function notifyObserver($sEvent, $mData=null)
{
foreach ($this->aObservers as $oObserver) {
try {
$oObserver->update($this, $sEvent, $mData);
} catch(Exception $e) {
}
}
}
/**
* Add an order
*
* @param array $aOrder
* @return void
*/
public function add($aOrder = array())
{
$this->notifyObserver('onAdd');
}
/**
* Return the order reference number
*
* @return int
*/
public function getRef()
{
return $this->iOrderRef;
}
/**
* Return the current order status
*
* @return int
*/
public function getStatus()
{
return $this->iStatus;
}
/**
* Update the order status
*/
public function updateStatus($iStatus)
{
$this->notifyObserver('onBeforeUpdateStatus');
// ...
$this->iStatus = $iStatus;
// ...
$this->notifyObserver('onAfterUpdateStatus');
}
}
/**
* Order status handler, observer that sends an email to secretary
* if the status of an order changes from shipped to delivered, so the
* secratary can make a phone call to our customer to ask for his opinion about the service
*
* @package Shop
*/
class OrderStatusHandler implements Observer_Interface
{
protected $iPreviousOrderStatus;
protected $iCurrentOrderStatus;
/**
* Update, called by the observable object order
*
* @param Observable_Interface $oObservable
* @param string $sEvent
* @param mixed $mData
* @return void
*/
public function update(Observable_Interface $oObservable, $sEvent, $mData=null)
{
if(!$oObservable instanceof Order) {
return;
}
switch($sEvent) {
case 'onBeforeUpdateStatus':
$this->iPreviousOrderStatus = $oObservable->getStatus();
return;
case 'onAfterUpdateStatus':
$this->iCurrentOrderStatus = $oObservable->getStatus();
if($this->iPreviousOrderStatus === Order::STATUS_SHIPPED && $this->iCurrentOrderStatus === Order::STATUS_DELIVERED) {
$sSubject = sprintf('Order number %d is shipped', $oObservable->getRef());
//mail('secratary@example.com', 'Order number %d is shipped', 'Text');
echo 'Mail sended to the secratary to help her remember to call our customer for a survey.';
}
}
}
}
$oOrder = new Order(26012011);
$oOrder->attachObserver(new OrderStatusHandler());
$oOrder->updateStatus(Order::STATUS_DELIVERED);
$oOrder->add();
?>
Now we are able to take action on different events that occur.
Disadvantages
Although this implementation works quite well there are some drawbacks. One of those drawbacks is that we need to dispatch an event in our framework, if we don’t programmers can’t hook into our application. Triggering events everywhere give us a small performance penalty however I do think this way of working gives the programmers a nice way to hook into your application on those spots that you want them to hook in.
Just for the record
Notice that this code is just an example and can still use some improvements, for example: each observer is initialized even it will maybe never be notified, therefore I suggest to make use of lazy in some cases for loading the objects. There are other systems to hook into an application, more to follow!
Woah! I’m really loving the template/theme of this blog. It’s simple, yet
effective. A lot of times it’s difficult to get that “perfect balance”
between user friendliness and visual appearance.
I must say you have done a superb job with this.
In addition, the blog loads extremely fast for me on Opera.
Exceptional Blog!
Roofing in Nazareth PA
15 Sep 25 at 7:18 am
скачать мостбет [url=http://mostbet12012.ru]http://mostbet12012.ru[/url]
mostbet_inSl
15 Sep 25 at 7:21 am
Мега онион Мега даркнет Мега сайт Мега онион Мега ссылка Mega даркнет Mega сайт Mega онион Mega ссылка Mega darknet Mega onion
RichardPep
15 Sep 25 at 7:23 am
SaludFrontera: SaludFrontera – online pharmacies in mexico
Charlesdyelm
15 Sep 25 at 7:24 am
цена купить диплом техникума [url=www.educ-ua7.ru/]цена купить диплом техникума[/url] .
Diplomi_trEr
15 Sep 25 at 7:27 am
Kaizenaire.com curates deals fгom Singapore’s preferred busihess fоr utmost savings.
Alԝays ready f᧐r ɑ sale, Singaporeans symbolize tһе significance
of Singapore aѕ a lively shopping heaven fսll of deals.
Yoga exercise classes іn peaceful studios helр Singaporeans maintain balance іn their fast-paced lives, and bear in mind tο stay
upgraded on Singapore’s neѡest promotions ɑnd shopping deals.
Beloved Samfu updates conventional Asian clothing ⅼike cheongsams, beloved Ьy Singaporeans fоr mixing heritage ѡith contemporary style.
CapitaLand Investment develops ɑnd takes care of residential ᧐r commercial properties ѕia, treasured ƅy
Singaporeans fⲟr their famous shopping centers ɑnd residential ɑreas lah.
The Coffee Bean & Tea Leaf brews specialty coffees ɑnd teas,
treasured fоr relaxing ambiences аnd signature beverages liҝe thе Ice Blended.
Ⅾo not miss out leh, Kaizenaire.ⅽom constantly updating ᴡith fresh discount
rates аnd offers foг savvy customers ⅼike you lor.
my webpage :: hire remote Philippines workers
hire remote Philippines workers
15 Sep 25 at 7:28 am
Этот текст призван помочь читателю расширить кругозор и получить практические знания. Мы используем простой язык, наглядные примеры и структурированное изложение, чтобы сделать обучение максимально эффективным и увлекательным.
Обратитесь за информацией – https://choosecolorwheel.com/hello-world
Danielgauch
15 Sep 25 at 7:28 am
купить диплом с занесением в реестр цена [url=http://www.educ-ua11.ru]купить диплом с занесением в реестр цена[/url] .
Diplomi_dsPi
15 Sep 25 at 7:32 am
купить диплом с проведением в [url=http://arus-diplom34.ru/]купить диплом с проведением в[/url] .
Diplomi_qmer
15 Sep 25 at 7:33 am
Мы предлагаем вам подробное руководство, основанное на проверенных источниках и реальных примерах. Каждая часть публикации направлена на то, чтобы помочь вам разобраться в сложных вопросах и применить знания на практике.
Обратитесь за информацией – https://costamarvillas.com/dummy-blog-post-3
GeraldWag
15 Sep 25 at 7:34 am
как зайти на сайт мостбет [url=mostbet12011.ru]mostbet12011.ru[/url]
mostbet_tmOt
15 Sep 25 at 7:36 am
Многодневные алкогольные запои опасны не только для здоровья, но и для жизни. В этот период организм подвергается тяжелейшей интоксикации, страдают сердце, печень, нервная система, а психоэмоциональное состояние может выйти из-под контроля. Самостоятельно выйти из запоя очень трудно и опасно: любое промедление или попытка “перетерпеть” чреваты судорогами, галлюцинациями, инфарктом, тяжелой депрессией или делирием. Именно поэтому своевременное обращение к профессионалам — залог не только скорого, но и безопасного восстановления. В наркологической клинике «НаркоМедцентр» в Балашихе организован современный и медицински обоснованный вывод из запоя: здесь пациентов ждет индивидуальный подход, круглосуточное медицинское наблюдение и полная конфиденциальность.
Ознакомиться с деталями – https://vyvod-iz-zapoya-balashiha5.ru/vyvod-iz-zapoya-cena-v-balashihe/
ShawnFence
15 Sep 25 at 7:43 am
click through the following website
PHP hook, building hooks in your application – Sjoerd Maessen blog at Sjoerd Maessen blog
click through the following website
15 Sep 25 at 7:44 am
купить диплом о высшем образовании с реестром [url=http://educ-ua15.ru]купить диплом о высшем образовании с реестром[/url] .
Diplomi_yvmi
15 Sep 25 at 7:46 am
диплом купить медицинского техникума [url=www.educ-ua6.ru/]www.educ-ua6.ru/[/url] .
Diplomi_gzMl
15 Sep 25 at 7:49 am
В этой публикации мы предлагаем подробные объяснения по актуальным вопросам, чтобы помочь читателям глубже понять их. Четкость и структурированность материала сделают его удобным для усвоения и применения в повседневной жизни.
Только факты! – https://tec-metal.com.ar
GregoryLek
15 Sep 25 at 7:49 am
Drugs information leaflet. What side effects can this medication cause?
ofloxacin otic and amoxicillin
All what you want to know about medicine. Get here.
ofloxacin otic and amoxicillin
15 Sep 25 at 7:50 am
I’m really enjoying the design and layout of your website.
It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to
create your theme? Great work!
my webpage: SOLAS compliance device
SOLAS compliance device
15 Sep 25 at 7:53 am
get cheap depakote prices
where buy generic depakote without dr prescription
15 Sep 25 at 7:53 am
Предлагаем вашему вниманию интересную справочную статью, в которой собраны ключевые моменты и нюансы по актуальным вопросам. Эта информация будет полезна как для профессионалов, так и для тех, кто только начинает изучать тему. Узнайте ответы на важные вопросы и расширьте свои знания!
Смотри, что ещё есть – https://foxy1069.com/2025/06/mariah-carey-releases-the-emancipation-of-mimi-20th-anniversary-edition
AndrewHitly
15 Sep 25 at 7:54 am
I must thank you for the efforts you have put in writing
this site. I really hope to view the same high-grade blog posts by
you in the future as well. In truth, your creative writing abilities has
inspired me to get my very own blog now 😉
скачать Лова казино
15 Sep 25 at 7:54 am
Откройте для себя скрытые страницы истории и малоизвестные научные открытия, которые оказали колоссальное влияние на развитие человечества. Статья предлагает свежий взгляд на события, которые заслуживают большего внимания.
Переходите по ссылке ниже – https://webofthings.org/2009/01/20/we-want-you
Robertworce
15 Sep 25 at 8:03 am
Эта публикация дает возможность задействовать различные источники информации и представить их в удобной форме. Читатели смогут быстро найти нужные данные и получить ответы на интересующие их вопросы. Мы стремимся к четкости и доступности материала для всех!
Доступ к полной версии – https://theshca.org.uk/temple-visit
RaymondBex
15 Sep 25 at 8:03 am
легально купить диплом [url=https://educ-ua11.ru/]легально купить диплом[/url] .
Diplomi_ebPi
15 Sep 25 at 8:05 am
В этой статье вы найдете познавательную и занимательную информацию, которая поможет вам лучше понять мир вокруг. Мы собрали интересные данные, которые вдохновляют на размышления и побуждают к действиям. Открывайте новую информацию и получайте удовольствие от чтения!
Обратиться к источнику – https://slcs.edu.in/instructor4
WayneCog
15 Sep 25 at 8:07 am
Mega даркнет Мега даркнет Мега сайт Мега онион Мега ссылка Mega даркнет Mega сайт Mega онион Mega ссылка Mega darknet Mega onion
RichardPep
15 Sep 25 at 8:10 am
диплом техникума проведенный купить [url=https://educ-ua6.ru/]https://educ-ua6.ru/[/url] .
Diplomi_pnMl
15 Sep 25 at 8:10 am
Wah, math acts like the foundation pillar of primary learning, assisting kids fߋr spatial analysis for
architecture careers.
Aiyo, ѡithout robust mathematics Ԁuring Junior
College, no matter leading establishment kids сould falter іn higһ school
algebra, so develop іt immediately leh.
Catholic Junior College ⲣrovides a values-centered education rooted іn empathy
and faϲt, producing a welcoming community ѡhеre students grow academically ɑnd spiritually.
Ꮤith a concentrate ߋn holistic development, tһе college offеrs robust programs in humanities and sciences, directed by
caring mentors who motivate ⅼong-lasting learning. Its dynamic co-curricular scene, including sports
аnd arts, promotes teamwork ɑnd ѕelf-discovery іn a supportive environment.
Opportunities for social ѡork and global exchanges build empathy аnd international perspectives аmongst trainees.
Alumni frequently becomе empathetic leaders, geared սp to make signifіcant contributions tօ society.
Hwa Chong Institution Junior College іs commemorated for itѕ smooth integrated program tһat masterfully combines strenuous academic difficulties ᴡith
extensive character development, cultivating a new generation оf worldwide scholars аnd ethical leaders
ᴡho aгe geared uup tо tackle complicated
worldwide issues. Ƭhe institution boasts first-rateinfrastructure, including advanced
гesearch study centers, multilingual libraries, аnd innovation incubators,
wheгe extremely certified faculty guide students tߋward quality in fields like scientific researcһ,
entrepreneurial ventures, and cultural studies. Trainees acquire invaluable experiences
tһrough comprehensive international exchange programs,
worldwide competitions іn mathematics and sciences, and collaborative tasks tһat broaden their horizons аnd fine-tune
theіr analytical аnd interpersonal skills. Вʏ stressing innovation tһrough initiatives ⅼike student-led startups and technology workshops,
аlong with service-oriented activities tһаt promote social obligation, tһe college constructs durability,
flexibility, аnd a strong ethical foundation іn iits learners.
Tһе large alumni network οf Hwa Chong Institution Junior
College оpens paths tօ elite universities and prominent
professions аround the worⅼd, underscoring the school’ѕ withstanding
tradition ߋf promoting intellectual prowess ɑnd
principled leadership.
Oh dear, lacking robust maths аt Junior College, even prestigious school
children mаy falter in next-level algebra, s᧐ develop it promptlү leh.
Hey hey, Singapore moms ɑnd dads, math proves perhapѕ tһe moѕt crucial primary topic,
encouraging creativity fоr issue-resolving in creative professions.
Oi oi, Singapore parents, maths іs perһaps the most crucial primary topic,
promoting creativity tһrough proЬlem-solving fοr
creative jobs.
Parents,fear tһe disparity hor, mathematics base гemains essential Ԁuring Junior College
іn understanding data, crucial ᴡithin modern digital economy.
Ꭺ-level Math prepares уou foг coding and AI, hot fields right now.
Folks, fear the disparity hor, maths groundwork гemains critical іn Junior College
for understanding figures, crucial fоr current online economy.
Oh man, even if establishment proves fancy, maths serves ɑs the critical discipline іn building assurance in figures.
St᧐p by my webpage :: Eunoia Junior College
Eunoia Junior College
15 Sep 25 at 8:11 am
купить диплом техникум официальный [url=https://educ-ua7.ru/]купить диплом техникум официальный[/url] .
Diplomi_bkEr
15 Sep 25 at 8:16 am
легально купить диплом [url=https://www.educ-ua15.ru]легально купить диплом[/url] .
Diplomi_pmmi
15 Sep 25 at 8:20 am
Hi Dear, are you genuinely visiting this web page regularly,
if so then you will definitely obtain good knowledge.
Hepatoburn reviews
15 Sep 25 at 8:21 am
Kaizenaire.com accumulations tһе significance
օf Singapore’s deals fоr maximum influence.
Singapore аs a bargain sanctuary astolunds Singaporeans ᴡho enjoy evеry promotion.
Singaporeans relax ԝith health facility ⅾays ɑt glamorous resorts, аnd remember tο stay upgraded оn Singapore’s lɑtest promotions ɑnd shopping
deals.
Jardine Cycle & Carriage deals іn automotive sales ɑnd services, valued Ƅy Singaporeans fоr thеіr costs automobile brand names ɑnd dependable after-sales support.
JTC developps commercial ɑreas and company parks lor, respected ƅy Singaporeans fօr
promoting innovation ɑnd economic centers leh.
Prima Deli bakes ᥙp neighborhood faves likе panan chiffon cakes, cherished Ьy households for joyful
deals witһ and daily indulgences.
Μuch ƅetter not FOMO lor, Kaizenaire.сom updates ᴡith new shopping promotions ѕia.
Review my site :: recruitment agency
recruitment agency
15 Sep 25 at 8:22 am
Этот информативный текст отличается привлекательным содержанием и актуальными данными. Мы предлагаем читателям взглянуть на привычные вещи под новым углом, предоставляя интересный и доступный материал. Получите удовольствие от чтения и расширьте кругозор!
Получить исчерпывающие сведения – https://cytopathsa.pl/hello-world
Robertfloow
15 Sep 25 at 8:22 am
puis-je acheter de l’anafranil gГ©nГ©rique sans assurance
coГ»t d'anafranil gГ©nГ©rique
15 Sep 25 at 8:24 am
login mostbet [url=https://mostbet12010.ru/]login mostbet[/url]
mostbet_nlPt
15 Sep 25 at 8:26 am
купить диплом с занесением в реестр барнаул [url=www.rnd.parts/communication/forum/user/1413/]купить диплом с занесением в реестр барнаул[/url] .
Zakazat diplom o visshem obrazovanii!_rbkt
15 Sep 25 at 8:26 am
Drugs information leaflet. Generic Name.
cost mobic without rx
All what you want to know about drugs. Read information now.
cost mobic without rx
15 Sep 25 at 8:28 am
Hi there, I think your website could possibly be having web browser compatibility problems.
Whenever I look at your blog in Safari, it looks fine however, when opening
in IE, it’s got some overlapping issues. I simply wanted to give you a quick heads up!
Other than that, fantastic blog!
best online poker sites
15 Sep 25 at 8:28 am
Way cool! Some very valid points! I appreciate you penning this post and also
the rest of the site is very good.
Melbet зеркало
15 Sep 25 at 8:29 am
Публикация приглашает вас исследовать неизведанное — от древних тайн до современных достижений науки. Вы узнаете, как случайные находки превращались в революции, а смелые мысли — в новые эры человеческого прогресса.
Почему это важно? – https://www.jeanchristophecumin.com/archives/390
ThomasMum
15 Sep 25 at 8:29 am
can you buy cheap isordil prices
can i buy cheap isordil without a prescription
15 Sep 25 at 8:31 am
В этой публикации мы предлагаем подробные объяснения по актуальным вопросам, чтобы помочь читателям глубже понять их. Четкость и структурированность материала сделают его удобным для усвоения и применения в повседневной жизни.
Подробнее – https://vertienteglobal.com/?p=243243
Philipfuell
15 Sep 25 at 8:34 am
https://truenorthpharm.com/# canadian pharmacy
JeremyBip
15 Sep 25 at 8:38 am
Medicine information. What side effects?
losartan first dose hypotension
Some what you want to know about meds. Read information here.
losartan first dose hypotension
15 Sep 25 at 8:38 am
скачать 1win официальный сайт бесплатно [url=http://1win12007.ru]http://1win12007.ru[/url]
1win_zipn
15 Sep 25 at 8:42 am
мост бет букмекерская контора [url=www.mostbet12010.ru]мост бет букмекерская контора[/url]
mostbet_hpPt
15 Sep 25 at 8:42 am
В этой статье вы найдете познавательную и занимательную информацию, которая поможет вам лучше понять мир вокруг. Мы собрали интересные данные, которые вдохновляют на размышления и побуждают к действиям. Открывайте новую информацию и получайте удовольствие от чтения!
Читать дальше – https://www.autolook.de/?p=973
Jerrytog
15 Sep 25 at 8:43 am
Публикация предлагает уникальную подборку информации, которая будет интересна как специалистам, так и широкому кругу читателей. Здесь вы найдете ответы на часто задаваемые вопросы и полезные инсайты для дальнейшего применения.
Читать дальше – https://www.fabspin.com/professional-carpet-cleaning-allergy-prevention
WallaceBeday
15 Sep 25 at 8:46 am
It’s no secret how President Donald Trump feels about sports teams turning away from Native American mascots. He’s repeatedly called for the return of the Washington Redskins and Cleveland Indians, claiming their recent rebrands were part of a “woke” agenda designed to erase history.
[url=https://kra39-cc.org]kra39 at [/url]
But one surprising team has really gotten the president’s attention: the Massapequa Chiefs.
The Long Island school district has refused to change its logo and name under a mandate from New York state banning schools from using team mascots appropriating Indigenous culture. Schools were given two years to rebrand, but Massapequa is the lone holdout, having missed the June 30 deadline to debut a new logo.
[url=https://kra-34.com]kra38 at[/url]
The district lost an initial lawsuit it filed against the state but now has the federal government on its side. In May, Trump’s Department of Education intervened on the district’s behalf, claiming the state’s mascot ban is itself discriminatory.
Massapequa’s Chiefs logo — an American Indian wearing a yellow feathered headdress — is expected to still be prominently displayed when the fall sports season kicks off soon, putting the quiet Long Island hamlet at the center of a political firestorm.
[url=https://kra-40-at.com]kra38 cc[/url]
The district is now a key “battleground,” said Oliver Roberts, a Massapequa alum and the lawyer representing the school board in its fresh lawsuit against New York claiming that the ban is unconstitutional and discriminatory.
The Trump administration claims New York’s mascot ban violates Title VI of the Civil Rights Act of 1964, which prohibits recipients of federal funds from engaging in discriminatory behavior based on race, color or national origin — teeing up a potentially precedent-setting fight.
The intervention on behalf of Massapequa follows a pattern for a White House that has aggressively applied civil rights protections to police “reverse discrimination” and coerced schools and universities into policy concessions by withholding federal funds.
“Our goal is to assist nationally,” Roberts said. “It’s us putting forward our time and effort to try and assist with this national movement and push back against the woke bureaucrats trying to cancel our country’s history and tradition.”
kra39
kra38
ScottZib
15 Sep 25 at 8:46 am
купить диплом строительного техникума [url=educ-ua7.ru]купить диплом строительного техникума[/url] .
Diplomi_ftEr
15 Sep 25 at 8:49 am