Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace erp\modules\GeoAddress\models; use erp\modules\GeoAddress\interfaces\Zip..
Decoded Output download
<?php
namespace erp\modules\GeoAddress\models; use erp\modules\GeoAddress\interfaces\ZipCodeInterface; use yii\db\ActiveQuery; use yii\db\ActiveRecord; use yii\db\IntegrityException; class ZipCode extends ActiveRecord implements ZipCodeInterface { public static function tableName() { return '{{%zip_code}}'; } public function rules() { return [ [['code', 'area'], 'required'], [['area'], 'string'], [['code'], 'string', 'max' => 50], ]; } public function attributeLabels() { return [ 'id' => 'ID', 'code' => 'Code', 'area' => 'Area', ]; } public static function find() { return parent::find()->select(['id', 'code', 'ST_asText(area) area']); } public function remove() { $isSuccess = $this->delete(); return $isSuccess; } public function changeArea($newArea) { $this->setAttribute('area', $newArea); $this->save(); return $this; } public function getId() { return $this->getAttribute('id'); } public function getCode() { return $this->getAttribute('code'); } public function getArea() { return $this->getAttribute('area'); } } ?>
Did this file decode correctly?
Original Code
<?php
namespace erp\modules\GeoAddress\models; use erp\modules\GeoAddress\interfaces\ZipCodeInterface; use yii\db\ActiveQuery; use yii\db\ActiveRecord; use yii\db\IntegrityException; class ZipCode extends ActiveRecord implements ZipCodeInterface { public static function tableName() { return '{{%zip_code}}'; } public function rules() { return [ [['code', 'area'], 'required'], [['area'], 'string'], [['code'], 'string', 'max' => 50], ]; } public function attributeLabels() { return [ 'id' => 'ID', 'code' => 'Code', 'area' => 'Area', ]; } public static function find() { return parent::find()->select(['id', 'code', 'ST_asText(area) area']); } public function remove() { $isSuccess = $this->delete(); return $isSuccess; } public function changeArea($newArea) { $this->setAttribute('area', $newArea); $this->save(); return $this; } public function getId() { return $this->getAttribute('id'); } public function getCode() { return $this->getAttribute('code'); } public function getArea() { return $this->getAttribute('area'); } }
Function Calls
None |
Stats
MD5 | 6109f3936fc62b05fb2d251341f0931f |
Eval Count | 0 |
Decode Time | 96 ms |