src/Aindong/Pluggables/Pluggables.php
public function setProperty($property, $value)
    {
        list($pluggable, $key) = explode('::', $property);

        $content = $this->getJsonContents($pluggable);

        if (count($content)) {
            if (isset($content[$key])) {
                unset($content[$key]);
            }

            $content[$key] = $value;
            $this->setJsonContents($pluggable, $content);

            return true;
        }

        return false;
    }
public function setProperty($property, $value)
    {
        list($pluggable, $key) = explode('::', $property);

        $content = $this->getJsonContents($pluggable);

        if (count($content)) {
            if (isset($content[$key])) {
                unset($content[$key]);
            }

            $content[$key] = $value;
            $this->setJsonContents($pluggable, $content);

            return true;
        }

        return false;
    }
public function setProperty ( $ property , $ value ) { list ( $ pluggable , $ key ) = explode ( '::' , $ property ) ; $ content = $ this -> getJsonContents ( $ pluggable ) ; if ( count ( $ content ) ) { if ( isset ( $ content [ $ key ] ) ) { unset ( $ content [ $ key ] ) ; } $ content [ $ key ] = $ value ; $ this -> setJsonContents ( $ pluggable , $ content ) ; return true ; } return false ; }
Set a pluggale property value.

@param string $property
@param mixed  $value

@return bool
Set a pluggale property value .