Tag Archives: classe

Can we create an object of a class inside another class in php?

Can we create an object of a class inside another class in php?I hav made a small application in php,now I am trying to convert the entire code in a class-methods-object fashion.I m now Confused.Continua a leggere

Tagged , , | Lascia un commento

Estensione della classe PHP supera RAM – CodeIgniter

I am modifying the model class by completely replacing it. I also wanted to break most of the components in different classes and to be loaded when they are needed. This particular class has to be loaded in the constructor.Continua a leggere

Tagged , , , , | 1 Come

Classe di carico di per sé le sue estensioni – PHP

Here is my problem.
It also comes with the next error.
*It’s not important, I am adding it instead of tags for search engines.
Call to a member function hi() su un non-oggetto in
/path/to/your/application/test.php on
linea 59

class Class_B{

     

Continua a leggere

Tagged , , , , | Lascia un commento

PHP Warnings, Notices and Errors

Hey guys I’m getting three things right now that I’m trying to take care of, and hoping you can help. I have and error, a warning, and a notice in my code that I would like to patch up andContinua a leggere

Tagged , , , , | Lascia un commento

Sending jquery ajax variable to a PHP class

I am using a php class to generate drop down boxes dynamically. But page was refreshing every time. But now i am trying to change it to ajax and i want to send ajax variable via post method. ma l'… Continua a leggere

Tagged , , , | Lascia un commento

Intermittente Re-Issue ridimensionamento immagine

I’m uploading images via stream_copy_to_stream() and then re-sizing them using the class and method below.
This is my resize class: http://pastebin.com/wtbcbfzv
I’m using it like so.

$resizeObj = new resize('image.jpg');
$resizeObj -> resizeImage(960, 800, 'auto');
$resizeObj -> saveImage('image.jpg', 100);

Tuttavia Continua a leggere

Tagged , , , | Lascia un commento

php classe di ereditare un solo metodo

I have these classes:

class User{
    private $user_ID;
    private $first_name;
    private $surname;
    ...

    private $website;
    private $company;

    function __construct($array){
        $this->user_ID            = $array["userId"];
        $this->first_name         = $array["first"];
        $this->surname            = $array["last"];
        $this->telephone          = $array["tele"];
        ...
    }
    public function addWebsite($array){
        $this->website = $array;
    }
    

Continua a leggere

Tagged , , , | 2 Commenti

PHP OOP Design Pattern

I recently read an article on Wikipedia about Design Pattern
So far I’ve done this, but it returns Fatal error: Maximum function nesting level of '100' reached, aborting!…
Logically I know, it will return nesting error, Ma, I don’t understand Continua a leggere

Tagged , , , , | 1 Come

how to get input parameters of any method of a class in PHP?

Let’s say I have a class with 10 metodi di, each method has different parameters.
I want to log input parameters of all methods of said class without having to do edit each method to insert that logging code. C'è… Continua a leggere

Tagged , , , | Lascia un commento

PHP Variabili, classi e l'ereditarietà comprendere le basi

Sto lavorando su un progetto PHP e ho bisogno di aiuto con le basi. Ho una classe Vehicle. All'interno della classe del veicolo c'è un fuel_capacity variabile chiamata. Come ci si aspetterebbe le variazioni della capacità di carburante dal veicolo… Continua a leggere

Tagged , , , | Lascia un commento
12 pagine