; $limit = 2592000 ; /* Nur Dateien löschen, die vor mindestens der Dauer in Sekunden gelöscht wurden */ wRepository :: emptyTrash ( $project , $limit ); // ein Beispiel finden Sie auch in den ab CMS-Version 14.x verfügbaren Cron-Skripten ?> Hinweis
bereits befüllten Feldern übernehmen // ANFANG $sessionFormValues = wSession :: getValue ( 'formValues' ); $values = !empty( $sessionFormValues ) && is_array ( $sessionFormValues ) === true ? $sessionFormValues : []; wSession :: setValue
inhalt leere Tags filter empty tags Dieser Artikel beschreibt, wie Sie innerhalb eines Formulares bzw. einer Seite ein Textfeld auf Inhalt prüfen.
Filtert Tags ohne Inhalt
ausschliessen $excludeUsersByGroup = [ 'chiefeditorship' , 'guests' ]; // Benutzer nach gruppen ausschliessen if( empty( $users ) ) { exit( 'noUsers' ); } $todayTS = time (); $marginLastPasswordChangeTS = $marginLastPasswordChange * 24 * 60
) { $existingNodes [] = $entryNode -> getAttribute ( 'url' ); } } $classesNode -> nodeValue = '' ; $setNodes = !empty( $newNodes ) ? array_unique ( array_merge ( $existingNodes , $newNodes ) ) : []; if( !empty( $setNodes ) ) { foreach(
string $email * @return bool */ function checkIfUserWithEmailExists ( string $email , array $options = [] ): bool { if( empty( $email ) ) { return false ; } if( array_key_exists ( 'clearIndex' , $options ) && $options [ 'clearIndex' ] ===
directoryExists(String path) documentExists Prüft, ob ein Dokument existiert. Boolean documentExists(String path) emptyTrash Löscht den Papierkorb (verfügbar ab CMS-Version 013.008.014.000) Array emptyTrash(String project, String limit)
auf beliebige Inhaltsgruppen einschränken. 008.004.066.000 30.04.2014 CSS-Only unterstützt serverseitig den Selektor :empty. 008.004.040.000 10.04.2014 Die Integer-Schreibweise bei upload_max_filesize wird auch berücksichtigt. 008.004.036.000
directoryExists(String path) documentExists (1) Prüft, ob ein Dokument existiert. Boolean documentExists(String path) emptyTrash (1) Löscht den Papierkorb (verfügbar ab CMS-Version 013.008.014.000) Array emptyTrash(String project, String limit)
; if( wUserCur :: getType () !== 'admin' ) { exit(); } $dirs = wRepository :: getSubdirsDir ( '' ); if( !empty( $dirs ) ) { foreach( $dirs as $dir ) { $isProject = wRepository :: documentExists ( $dir .
require_once( $_SERVER [ "DOCUMENT_ROOT" ]. "/weblication/grid.php" ); wRequest :: includePage ( '/de/index.php' , !empty( $_SERVER [ 'QUERY_STRING' ]) ? '?' . $_SERVER [ 'QUERY_STRING' ] : '' ); ?> Der Inklude sollte in einer PHP-Datei
/dev/dokumentationen/framework/funktionen/wRepository-emptyTrash.php /dev/dokumentationen/framework/funktionen/wRepository-getContentDir.php
/dev/dokumentationen/framework/funktionen/wRepository-emptyTrash.php /dev/dokumentationen/framework/funktionen/wRepository-getDocument.php
/dev/dokumentationen/framework/funktionen/wRepository-emptyTrash.php /dev/dokumentationen/framework/funktionen/wRepository-getDocument.php
wRepository::deleteVersions wRepository::directoryExists wRepository::documentExists wRepository::emptyTrash wRepository::getContentDir wRepository::getDocument wRepository::getDocumentContent wRepository::getDocumentSize
( $path , $options ); //print ' '; print var_dump(wRepository::getDocumentVersions($path)); print ' '; exit; if(!empty( wRepository :: getDocumentVersions ( $path ))){ print ' ' ; print var_dump ( $diff ); print ' ' ; } else{ print 'Keine
]: No stylesheet associated to this object in ... DOMDocument::loadXML() [ domdocument.loadxml ]: Empty string supplied as input ... Aus der Fehlermeldung lassen sich nun direkt die möglichen Ursachen ablesen. In diesem
foreach( $productData [ 'variants' ] as $key => $value ){ /*Zusammenbau des InputStrings*/ $input = ' . $value [ 'id' ]. '" ' .(!empty( $value [ 'checked' ]) && $value [ 'checked' ] ? 'checked="checked"' : '' ) . ' type="radio" name="variant"
); wEnv :: setGlobalValue ( 'pageTitle' , wDocumentData :: getData ( wPageCur :: getPath (), 'title' ). ' - Seite ' .(!empty( $pageID ) ? $pageID : 1 )); Den Namen des Parameters müssen Sie im Skript entsprechend Ihren Gegebenheiten anpassen.
$key ][ 'orderOutOfMax' ] = '1' ; /*Überlagern des Bestellfeldes in der Produkt-Datei*/ $inputStrg = ' . $value [ 'id' ]. '" ' .(!empty( $value [ 'checked' ]) && $value [ 'checked' ] ? 'checked="checked"' : '' ). ' type="radio" name="variant"
Final Version (Sicherheitsrelevantes Update) 013.008.014.000 17.06.2019 Neue PHP-Framework Funktion wRepository::emptyTrash verfügbar, um den Papierkorb komplett zu leeren oder abhängig von Löschdatum der Dateien zu bereinigen.
$project . '/' ; if( ! is_dir ( $zipDir ) ) { exit( 'zipDir does not exist: ' . $zipDir ); } $excludedString = '' ; if( !empty( $excludedDirs ) ) { $excludedString = ' -x' ; foreach( $excludedDirs as $dir ) { $excludedString .= ' **' . wPathName ::