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 | |
/** | |
* ProcessWire AddPageFieldProperty demonstration module | |
* | |
* | |
* ProcessWire 2.x | |
* Copyright (C) 2010 by Ryan Cramer | |
* Licensed under GNU/GPL v2, see LICENSE.TXT | |
* |
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 MapPageField extends WireData implements Module{ | |
public static function getModuleInfo(){ | |
return array( | |
'title' => 'MapPageField', | |
'version' => 100, | |
'singular' => true, | |
'autoload' => true |
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
$words = ''; | |
$q = $sanitizer->selectorValue($input->post->q); | |
$words = explode(' ', $q); | |
foreach($words as $word) { | |
$word = $sanitizer->selectorValue($word); | |
if($word) $selectorEmergencyContacts .= "title|label_$lang*=$word, "; | |
} | |
... |
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 | |
/** | |
* ProcessWire Module Template | |
* | |
* Demonstrates the Module interface and how to add hooks. | |
* | |
* ProcessWire 2.x | |
* Copyright (C) 2010 by Ryan Cramer | |
* Licensed under GNU/GPL v2, see LICENSE.TXT |
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 ProcessDashboard extends Process { |
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 download{ | |
public function startDownload( $vFilePath, $vDownloadName=""){ | |
$vFilename = basename( $vFilePath); | |
$vNewFilename = $vDownloadName == "" ? $vFilename : $vDownloadName; | |
$vFileType = $this->getFileType( $vFilename); | |
$vContentType = $this->GetContentType( $vFileType); | |
// Fix IE bug [0] |
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 | |
/** | |
* ProcessWire PageReferenceLink | |
* | |
* @author Soma philipp(at)urlich.ch | |
* | |
* | |
* ProcessWire 2.x | |
* Copyright (C) 2010 by Ryan Cramer |
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 | |
/** | |
* ProcessWire Module FieldHelper | |
* | |
* | |
* ProcessWire 2.x | |
* Copyright (C) 2010 by Ryan Cramer | |
* Licensed under GNU/GPL v2, see LICENSE.TXT | |
* |
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 | |
// start module to textarea counter | |
class TextAreaCounter extends WireData implements Module { | |
//const default_maxlength = 255; | |
/** | |
* getModuleInfo is a module required by all modules to tell ProcessWire about them |