Jump to content

wJesus56

Members
  • Content count

    11
  • Joined

  • Last visited

Community Reputation

0 Neutral

About wJesus56

  • Rank
    Member
  1. with fix: https://jsfiddle.net/jsman82/qmmo8y98/15/
  2. How to make the text do not fall down behind the leaving layer without using the absolute property?Code for my question: http://jsfiddle.net/jsman82/qmmo8y98/3/
  3. wJesus56

    Property reassignment

    I understand how the audience at my suggestion to help solve the issue you can't, thank you for your wishes.
  4. wJesus56

    Property reassignment

    Yes, I noticed, as you behold such a decision? $dom->GetElementById('container-profile')->nodeValue = "<p>This is some new text</p>"; $page = $dom->saveHTML(); echo htmlspecialchars_decode($page);
  5. wJesus56

    Property reassignment

    I found an alternative method in the DOM DOCUMENT to change the content in the layer: $dom->GetElementById('id')->nodeValue = "<p>This is some new text</p>"; Thank you for your attention to my question!
  6. wJesus56

    Property reassignment

    Is there a method in "DOM Document" to find an element on the id and change its contents, such as with "simple house" or is there a method for parsing a pair? (simple dom variant ) $ Dom-> getElementById ("header") -> innertext = sometext;
  7. wJesus56

    Property reassignment

    $Dom = new DOMDocument (); $HTML = file_get_contents ('views / file.html'); @ $Dom-> loadHTML ('<meta http-equiv = "Content-Type" content = "text / html; charset = utf-8">'. $ HTML); $Dom-> getElementById ("id") -> setAttribute ('value', 'some value'); $Dom-> saveHTML (); I solved my task as above, after I got the setAttribute method! Formatting is preserved, in contrast to the Simple Dom! Thank you all for your attention to my question!
  8. wJesus56

    Property reassignment

    I only got one simple dom parcer which I would be comfortable with, but it returns a large string of html code, so I was puzzled to write my simple parser that works a little differently, but still retains the custom formatting.
  9. wJesus56

    Property reassignment

    $ Page = new parse ("<input id = id1 value = ''>"); $ Page -> getElementByID ("id1") -> value = "some value"; $ Page -> content; // <input id = id1 value = 'some value'> I want to make a simple parser, and work with it roughly as above, I've already written the replacement method, and I need to have access to the content member (for example) in which there should be a result with a replacement outside the class without using a static property.
  10. wJesus56

    Property reassignment

    Thank you kicen! I and represented approximately. How to build a class so that you can work with it as in the example above at the end? That is to receive not "null" in "member", and "same value"?
  11. wJesus56

    Property reassignment

    <?PHP class myClass { public $member; public $freevar; public function __construct($x, $y) { //... } public function __set($name, $value) { if ($name =="value") { $this->member="some info"; } } public function testfunc($something) { $this->freevar = $something; return new self('x', 'y'); } } $page = new myClass('x', 'y'); $page -> testfunc("something") -> value = "some value"; echo $page->member; //null Hello! I'm trying to make a class so that its magic method __set changes the value of the member property in the object class myClass when the value value "some value" is assigned to the non-existent property. The property by reference is not overridden, and the method that implies the use of the static property is not appropriate. How to make it work?
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.