This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author James McFadden <[email protected]> | |
*/ | |
final class PluralHelper | |
{ | |
private static $irregularPluralForms = array( | |
'alumnus' => 'alumni', | |
'analysis' => 'analyses', | |
'appendix' => 'appendices', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class App_Validate_Xml extends Zend_Validate_Abstract | |
{ | |
const ERROR_MESSAGE = 'error'; | |
public $xmlError; | |
protected $_messageVariables = array( | |
'xmlError' => 'xmlError' | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="<?php echo $this->escape($this->form->getAttrib('id')); ?>" action="<?php echo $this->escape($this->form->getAction()); ?>" method="<?php echo $this->form->getMethod(); ?>"> | |
<div class="fileupload-buttonbar"> | |
<span class="fileinput-button"> | |
<span>Add files...</span> | |
<?php echo $this->form->Photo; ?> | |
</span> | |
<?php echo $this->form->Start; ?> | |
<?php echo $this->form->Cancel; ?> | |
<?php echo $this->form->Delete; ?> | |
<div class="fileupload-progress fade"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This is aimed for use with jQueryFileUpload | |
* | |
* @link https://github.com/blueimp/jQuery-File-Upload | |
* @author James McFadden <[email protected]> | |
*/ | |
class Form_Jquery_File_Upload extends Form_Upload | |
{ | |
function init() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$jsonArray = array(); | |
foreach($photos as $i => $photo) { | |
$jsonArray[$i]['name'] = $photo->getName(); | |
$jsonArray[$i]['size'] = $photo->getSize(); | |
$jsonArray[$i]['url'] = $photo->getUrl(); | |
$jsonArray[$i]['thumbnail_url'] = $photo->getThumbnailUrl(); | |
$jsonArray[$i]['delete_url'] = 'delete-photo.php?id=' . $photo->getId(); | |
} | |
echo json_encode($jsonArray); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo $this->renderTable( | |
array( | |
'#' => 'Id', | |
'Username' => 'Username', | |
'Email Address' => 'EmailAddress', | |
'Date Added' => 'DateCreated', | |
'Manage' => array( | |
'Static' => '<a href="/user/view?id=%UserId%">View %Username%</a>', | |
'Placeholders' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author James McFadden <[email protected]> | |
*/ | |
class App_View_Helper_RenderTable extends Zend_View_Helper_Abstract | |
{ | |
/** | |
* Generate and return the table HTML | |
* | |
* @param array $headerDataMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$map = new LiteMap_Container(); | |
$map->setCenter(51.500152, -0.126236); | |
?> | |
<head> | |
<?php echo $map->getJs(); ?> | |
</head> | |
<body> | |
<?php echo $map->render(); ?> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$map = new LiteMap_Container(); | |
$map->setCenter(51.500152, -0.126236); | |
$locations = array( | |
'51.500152' => '-0.126236', | |
'51.512249182894756' => '-0.15815299440919262', | |
'51.52325165255695' => '-0.11283439089356762', | |
'51.47238304492127' => '-0.15883963991700512', | |
'51.49077068938746' => '-0.07232230593263012' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$map = new LiteMap_Container(); | |
$map->setCenter(51.500152, -0.126236); | |
$locations = array( | |
'51.500152' => '-0.126236', | |
'51.512249182894756' => '-0.15815299440919262', | |
'51.52325165255695' => '-0.11283439089356762', | |
'51.47238304492127' => '-0.15883963991700512', | |
'51.49077068938746' => '-0.07232230593263012' |
OlderNewer