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?