\hypertarget{__dirSize_8php}{\section{Riferimenti per il file \-\_\-src/\-\_\-ajax/\-\_\-dir\-Size.php}
\label{d9/d20/__dirSize_8php}\index{\-\_\-src/\-\_\-ajax/\-\_\-dir\-Size.\-php@{\-\_\-src/\-\_\-ajax/\-\_\-dir\-Size.\-php}}
}


web service per il controllo dello spazio occupato dalla piattaforma  


\subsection*{Variabili}
\begin{DoxyCompactItemize}
\item 
\hyperlink{__dirSize_8php_a08270b9f1a24515b86e909a32ce07f62_a08270b9f1a24515b86e909a32ce07f62}{\$cf} \mbox{[}'folders'\mbox{]}\mbox{[}'levels'\mbox{]} = '../../'
\item 
\hyperlink{__dirSize_8php_aef55295c5dbbb6a637749d1ec42923c0_aef55295c5dbbb6a637749d1ec42923c0}{\$cf} \mbox{[}'folders'\mbox{]}\mbox{[}'page'\mbox{]} = '\hyperlink{__filesystem_8utils_8php_a4902dd77650d5814fe1dfe06ceaf53a4_a4902dd77650d5814fe1dfe06ceaf53a4}{ajax.\-dir\-Size}'
\item 
\hyperlink{__dirSize_8php_a2792de47acaa39914ca3451af96cdc10_a2792de47acaa39914ca3451af96cdc10}{\$directory\-Da\-Controllare} = ( ( ! empty( \$\-\_\-\-R\-E\-Q\-U\-E\-S\-T\mbox{[}'directory'\mbox{]} ) ) ? str\-\_\-replace( '../' , '' , \$\-\_\-\-R\-E\-Q\-U\-E\-S\-T\mbox{[}'directory'\mbox{]} ) . '/' \-: '' )
\item 
\hyperlink{__dirSize_8php_af594986e4618a8d6a5d7566617f583c6_af594986e4618a8d6a5d7566617f583c6}{\$size} = \hyperlink{__filesystem_8utils_8php_a4902dd77650d5814fe1dfe06ceaf53a4_a4902dd77650d5814fe1dfe06ceaf53a4}{dir\-Size}( \$cf\mbox{[}'folders'\mbox{]}\mbox{[}'levels'\mbox{]} . \$directory\-Da\-Controllare )
\item 
\hyperlink{__dirSize_8php_a6b1d530f71de34752989b321ac21cfa1_a6b1d530f71de34752989b321ac21cfa1}{\$ar\-Dati} = array( 'directory' =$>$ \$directory\-Da\-Controllare , 'size' =$>$ \hyperlink{__text_8format_8php_a1a2d405ae0638e9ac0f4beae97c148de_a1a2d405ae0638e9ac0f4beae97c148de}{write\-Byte}( \$size ) , 'raw\-Size' =$>$ \$size )
\item 
\hyperlink{__dirSize_8php_a81aead23034e41971765fe45ac891f0c_a81aead23034e41971765fe45ac891f0c}{\$tx} = json\-\_\-encode( \$ar\-Dati )
\end{DoxyCompactItemize}


\subsection{Descrizione dettagliata}
web service per il controllo dello spazio occupato dalla piattaforma Richiede come parametro il nome della directory da esaminare, altrimenti calcola lo spazio occupato dall'intera installazione. Chiamate di esempio\-:


\begin{DoxyItemize}
\item $<$protocollo\-Installazione$>$\-://$<$url\-Installazione$>$/\mbox{[}path\-Installazione/\mbox{]}\-\_\-src/\-\_\-ajax/\-G\-E\-T\-\_\-dir\-Size.\-php?directory=tmp risposta\-: \{\char`\"{}directory\char`\"{}\-:\char`\"{}tmp\textbackslash{}/\char`\"{},\char`\"{}size\char`\"{}\-:\char`\"{}70.\-99 Kb\char`\"{},\char`\"{}raw\-Size\char`\"{}\-:72694\} 
\end{DoxyItemize}

\subsection{Documentazione delle variabili}
\hypertarget{__dirSize_8php_a6b1d530f71de34752989b321ac21cfa1_a6b1d530f71de34752989b321ac21cfa1}{\index{\-\_\-dir\-Size.\-php@{\-\_\-dir\-Size.\-php}!\$ar\-Dati@{\$ar\-Dati}}
\index{\$ar\-Dati@{\$ar\-Dati}!_dirSize.php@{\-\_\-dir\-Size.\-php}}
\subsubsection[{\$ar\-Dati}]{\setlength{\rightskip}{0pt plus 5cm}\$ar\-Dati = array( 'directory' =$>$ \$directory\-Da\-Controllare , 'size' =$>$ {\bf write\-Byte}( \$size ) , 'raw\-Size' =$>$ \$size )}}\label{d9/d20/__dirSize_8php_a6b1d530f71de34752989b321ac21cfa1_a6b1d530f71de34752989b321ac21cfa1}
\hypertarget{__dirSize_8php_a08270b9f1a24515b86e909a32ce07f62_a08270b9f1a24515b86e909a32ce07f62}{\index{\-\_\-dir\-Size.\-php@{\-\_\-dir\-Size.\-php}!\$cf@{\$cf}}
\index{\$cf@{\$cf}!_dirSize.php@{\-\_\-dir\-Size.\-php}}
\subsubsection[{\$cf}]{\setlength{\rightskip}{0pt plus 5cm}\$cf\mbox{[}'folders'\mbox{]}\mbox{[}'levels'\mbox{]} = '../../'}}\label{d9/d20/__dirSize_8php_a08270b9f1a24515b86e909a32ce07f62_a08270b9f1a24515b86e909a32ce07f62}
\hypertarget{__dirSize_8php_aef55295c5dbbb6a637749d1ec42923c0_aef55295c5dbbb6a637749d1ec42923c0}{\index{\-\_\-dir\-Size.\-php@{\-\_\-dir\-Size.\-php}!\$cf@{\$cf}}
\index{\$cf@{\$cf}!_dirSize.php@{\-\_\-dir\-Size.\-php}}
\subsubsection[{\$cf}]{\setlength{\rightskip}{0pt plus 5cm}\$cf\mbox{[}'folders'\mbox{]}\mbox{[}'page'\mbox{]} = '{\bf ajax.\-dir\-Size}'}}\label{d9/d20/__dirSize_8php_aef55295c5dbbb6a637749d1ec42923c0_aef55295c5dbbb6a637749d1ec42923c0}
\hypertarget{__dirSize_8php_a2792de47acaa39914ca3451af96cdc10_a2792de47acaa39914ca3451af96cdc10}{\index{\-\_\-dir\-Size.\-php@{\-\_\-dir\-Size.\-php}!\$directory\-Da\-Controllare@{\$directory\-Da\-Controllare}}
\index{\$directory\-Da\-Controllare@{\$directory\-Da\-Controllare}!_dirSize.php@{\-\_\-dir\-Size.\-php}}
\subsubsection[{\$directory\-Da\-Controllare}]{\setlength{\rightskip}{0pt plus 5cm}\$directory\-Da\-Controllare = ( ( ! empty( \$\-\_\-\-R\-E\-Q\-U\-E\-S\-T\mbox{[}'directory'\mbox{]} ) ) ? str\-\_\-replace( '../' , '' , \$\-\_\-\-R\-E\-Q\-U\-E\-S\-T\mbox{[}'directory'\mbox{]} ) . '/' \-: '' )}}\label{d9/d20/__dirSize_8php_a2792de47acaa39914ca3451af96cdc10_a2792de47acaa39914ca3451af96cdc10}
\hypertarget{__dirSize_8php_af594986e4618a8d6a5d7566617f583c6_af594986e4618a8d6a5d7566617f583c6}{\index{\-\_\-dir\-Size.\-php@{\-\_\-dir\-Size.\-php}!\$size@{\$size}}
\index{\$size@{\$size}!_dirSize.php@{\-\_\-dir\-Size.\-php}}
\subsubsection[{\$size}]{\setlength{\rightskip}{0pt plus 5cm}\$size = {\bf dir\-Size}( \$cf\mbox{[}'folders'\mbox{]}\mbox{[}'levels'\mbox{]} . \$directory\-Da\-Controllare )}}\label{d9/d20/__dirSize_8php_af594986e4618a8d6a5d7566617f583c6_af594986e4618a8d6a5d7566617f583c6}
\hypertarget{__dirSize_8php_a81aead23034e41971765fe45ac891f0c_a81aead23034e41971765fe45ac891f0c}{\index{\-\_\-dir\-Size.\-php@{\-\_\-dir\-Size.\-php}!\$tx@{\$tx}}
\index{\$tx@{\$tx}!_dirSize.php@{\-\_\-dir\-Size.\-php}}
\subsubsection[{\$tx}]{\setlength{\rightskip}{0pt plus 5cm}\$tx = json\-\_\-encode( \$ar\-Dati )}}\label{d9/d20/__dirSize_8php_a81aead23034e41971765fe45ac891f0c_a81aead23034e41971765fe45ac891f0c}
