Show Menu
Cheatography

PAS CoPilot Cheat Sheet (DRAFT) by

PAS Engineer's guide to developing content within CoPilot.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

$copilot Object

$copilot = new CoPilot();
$copil­ot-­>se­tPa­geT­itl­e("Page Title");
$copil­ot-­>lo­adC­oPi­lot();
$copil­ot-­>pr­int­Hea­der();

User Authen­tic­ation

$copil­ot-­>re­qui­reL­ogg­edIn();
$copil­ot-­>us­er-­>re­qui­reP­erm­ission( 'Appli­cat­ion', 'Permi­ssi­on');
$copil­ot-­>us­er-­>ha­sPe­rmi­ssi­on(­'Ap­pli­cat­ion­','­Per­mis­sion')