Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/07/2011, 12:12
w0rldart
 
Fecha de Ingreso: junio-2009
Ubicación: Madrid
Mensajes: 402
Antigüedad: 14 años, 10 meses
Puntos: 20
Respuesta: Pasar un array por el url

Tengo otro problemita, no consigo cambiar los valor de la otra clase pasando esto

Código PHP:

    
    
function __construct(){
        
$ImgOperations = new ImgOperations();
    }
    private function 
checkFileNamePhotos(){
        
$ImgOperations->checkFileName['photos'] = true;
    } 
en la otra clase tengo
Código PHP:
public $checkFileName = array(
                                    
"photos" => false,
                                    
"thumbs" => false
                                
);
public 
$checkThumbs false;
 if(
$this->checkThumbs){
                    echo 
"Check thumbs true";
                    
self::create_thumb();
                }

                if(
$this->checkFileName['photos']){
                    echo 
"Photos true";
                    foreach (
$this->files as $file){
                        
Filter::cleanFileName($file);
                    }
                }else{
                    echo 
"Photos false<br/>";
                }
                
                if(
$this->checkFileName['thumbs']){
                    echo 
"Thumbs true";
                    foreach (
$this->tfiles as $tfile){
                        
Filter::cleanFileName($tfile);
                    }                    
                }else{
                    echo 
"Thumbs false";
                } 
Pero nada cambia, siempre me sale el false. Que podria estar yo haciendo mal?